【发布时间】:2021-10-15 12:32:33
【问题描述】:
我是用户 Xamarin fomrs text to Speech api click here to see
我已经设法在我的应用程序上实现了它,但有时歌曲会在手机扬声器上播放,有些人会在录制歌曲后在耳机上讲话
问题:
如何让歌曲始终在手机的扬声器上播放
代码如下:
var config = SpeechConfig.FromSubscription("xxxx", "xxxx");
config.SpeechSynthesisVoiceName = MicosoftTranslater.MySpeakerlanguagesList( "fr-FR");
var synthesizer = new SpeechSynthesizer(config);
await synthesizer.SpeakTextAsync("I am playing from phone speaker");
感谢您的帮助
【问题讨论】:
-
对您有帮助吗?
标签: c# .net xamarin.forms xamarin.ios azure-cognitive-services