如何为IBM Watson speech2text服务指定语音关键词? [英] How to specify phonetic keywords for IBM Watson speech2text service?

查看:99
本文介绍了如何为IBM Watson speech2text服务指定语音关键词?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然在一般情况下我们使用Bluemix Java SDK取得了成功,但在尝试识别偶发的非英语单词(例如外来姓氏)时遇到了问题.我们的希望是可以使用SPR语音符号(这对text2speech非常有用)来指定关键字列表,但对Speech2text似乎不支持.有任何建议/解决方法吗?

While we have had good success with Bluemix Java SDK in the general case, we've bumped into problems while trying to recognize occasional non-English words (e.g., foreign last names). Our hope was that one could specify the keyword list using SPR phonetic notation (which works great for text2speech), but that does not seem to be supported for speech2text. Any suggestions/workarounds?

SpeechToText service = new SpeechToText();
service.setUsernameAndPassword("USERNAME", "PASSWORD");

File audio = new File("C:\\Users\\AudioFiles\\euler.wav");    

RecognizeOptions options = new RecognizeOptions().Builder()
  .contentType(HttpMediaType.AUDIO_WAV)
  .continuous(true)
  .inactivityTimeout(500)
  .keywords({"Agarwal", "Euler", "Qin"})
  .keywordsThreshold(0.5)
  .build();

  SpeechResults transcript = service.recognize(audio, options);
  System.out.println(transcript);

目标是可以说我叫约翰·欧拉".并且抄录内容不要返回我的名字叫约翰·奥勒(John Oyler)"之类的内容. (这是当前的操作).

The objective is to be able say "My name is John Euler." and for the transcript not to return something like "My name is John Oyler." (which is what it does currently).

谢谢.

推荐答案

嗯,您传递的三个词实际上在词汇表中,但可能找不到,因为它们在语言模型中的权重很小.您是否尝试过放宽门槛?如果任务是针对名称的,您还可以尝试使用Watson STT定制服务来提高名称的概率

Hmm, the three words that you pass are actually in the vocabulary, but maybe they are not found because they have very little weight in the language model. Have you tried relaxing the threshold? You can also try to use the Watson STT customization service to boost probabilities of names if the task is name focused

这篇关于如何为IBM Watson speech2text服务指定语音关键词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆