DIalogflow短语提示

时间:2018-09-25 05:57:46

标签: google-cloud-platform speech-recognition dialogflow google-speech-api

streamingDetectIntentRequest = new StreamingDetectIntentRequest()
                    {
                        SingleUtterance = true,
                        Session = new SessionName("telebot-pianomoves-v1", "yoke").ToString(),
                        QueryInput = new QueryInput()
                        {
                            AudioConfig = new InputAudioConfig()
                            {
                                AudioEncoding = Google.Cloud.Dialogflow.V2.AudioEncoding.Linear16,
                                SampleRateHertz = 8000,
                                LanguageCode = "en-US",


                                PhraseHints = myStringArray


                            },
                        },
                    };

使用此代码,我收到错误提示,短语提示是只读的?如何为streamingDetectIntentRespinse提供短语提示?

0 个答案:

没有答案