如何通过bing语音到文本 * Android * SDK设置自定义端点UI



我正在使用bing语音到文本Android SDK测试自定义语音服务。

但是,我无法使用Android SDK设置自定义端点的URI。在当前的SDK中,Endpoint URI在SepingRencognitionServiceFactory.AAR库中进行了硬编码,并且无法更改它。(在Windows SDK中,我们可以轻松更改它。)

请告诉我如何在Android Bing Speech SDK上设置自定义端点UI?

最好的问候;

已解决: - )

库已弃用启用自定义端点的条目。例如:

原始(带有std端点):

                    this.micClient = SpeechRecognitionServiceFactory.createMicrophoneClient(
                        this,
                        this.getMode(),
                        this.getDefaultLocale(),
                        this,
                        this.getPrimaryKey());

更改(使用自定义端点):

                    this.micClient = SpeechRecognitionServiceFactory.createMicrophoneClient(
                        this,
                        this.getMode(),
                        this.getDefaultLocale(),
                        this,
                        this.getPrimaryKey(),
                        this.getPrimaryKey(),
                        "YourCustomEndPoint");

快乐黑客!

最新更新