小编Sri*_*san的帖子

没有这样的主机是已知的 —> System.Net.Http.HttpRequestException:

我正在开发机器人解决方案,其中我正在进行 REST 调用以从其他服务器获取一些详细信息。

\n\n

在本地主机中,我的代码工作正常,但在 Azure 中发布代码后,我收到以下错误:

\n\n
\n

System.Net.WebException:没有这样的主机已知 没有这样的主机已知 \xe2\x80\x94> System.Net.Http.HttpRequestException:没有这样的主机已知 \xe2\x80\x94> System.Net.Sockets.SocketException : 不知道这样的主机

\n
\n\n

我正在使用HttpWebRequest选项。

\n\n

我可以知道可能是什么原因吗?

\n

.net c# rest azure botframework

5
推荐指数
1
解决办法
3万
查看次数

语音功能在 IFrame 中不起作用

我有一个机器人客户端,我在其中启用了语音功能。当我在新窗口中打开机器人客户端时,一切正常。最近,我们在页面中添加了此机器人客户端站点 URL 作为 IFrame。在此情况下,除语音功能外,所有功能都运行良好。当我们单击麦克风图标时,没有任何反应。

已在多种浏览器和设备中尝试过,所有设备中都有同样的问题。Windows - Chrome、IE iPad、iPhone

这是预期的行为吗?或者我需要更新什么吗?

如果您希望我分享任何代码,请告诉我。

代码。

 speechOptions = {
        speechRecognizer: new CognitiveServices.SpeechRecognizer({
            subscriptionKey:
                'xxx'
        }),
        speechSynthesizer: new CognitiveServices.SpeechSynthesizer({
            gender: CognitiveServices.SynthesisGender.Female,
            subscriptionKey: 'xxx'
            voiceName: 'Microsoft Server Speech Text to Speech Voice (en-US, ZiraRUS)'
        })
    };
    BotChat.App({
        botConnection: botConnection,
        user: { id: model.userId, Username: LoginUser,},
        bot: { id: model.botId, name: model.botName },
        resize: 'window',
        speechOptions: speechOptions,
        locale: 'en',
        sendTypingIndicator: true
    }, document.getElementById('BotChatElement'));

    botConnection
        .postActivity({
            from: user,
            name: 'requestWelcomeDialog',
            type: 'event',
            value: ''
        })
        .subscribe(function (id) {
            console.log('"trigger …
Run Code Online (Sandbox Code Playgroud)

speech-recognition botframework azure-cognitive-services

1
推荐指数
1
解决办法
1144
查看次数