我希望在没有- curl或ibm_watson模块的情况下使用IBM语音识别服务。
我的尝试如下:
import speech_recognition as sr
r = sr.Recognizer()
text = r.recognize_ibm(audio,username='',password='')
即使我有IBM云语音文本的“服务凭据”,我也找不到该函数的正确形式。
在recognize_ibm()的文档中,有人说我需要输入才能找到格式的username。
但是link_1坏了。在哪里可以找到username和password?
我还尝试了text
我正在学习编写一个用于在给定字符串上执行TTS的应用程序,并尝试了一个从web修改的示例:
编码如下:
// setup TTS part 1
mTts = new TextToSpeech(Lesson2_dialog_revision_simple.this, this); // TextToSpeech.OnInitListener
speakBtn.setOnClickListener(new OnClickListener()
{
public void on
我正在尝试在下面的Python程序中使用IBM演讲来文本API/service。
import json
import os
import sys
from watson_developer_cloud import SpeechToTextV1
def transcribe_audio(audio_file_name) :
IBM_USERNAME = "yourusername"
IBM_PASSWORD = "yourpassword"
#what changes should be made here instead of
当我试图运行时,这是我一直在这一行上得到的错误消息:
recognitionEngine.LoadGrammar(GrammarBuilder());
错误:
The language for the grammar does not match the language of the speech recognizer.
我到处寻找,但我似乎找不到答案!
在语音识别属性中,我有两个语言选项:
Microsoft语音识别器8.0 for Windows (英语-英国)
Microsoft语音识别器8.0 for Windows (英语-美国)。
只有当我将设置为English