gpt4 book ai didi

azure - 如何使用 Azure 函数机器人进行 Skype 通话?

转载 作者:行者123 更新时间:2023-12-02 06:20:10 30 4
gpt4 key购买 nike

我正在开发一个机器人,您可以通过 Skype 向其发送消息和调用。该机器人在 Azure 函数中运行。我的消息部分正在工作。我已在 Azure 中将机器人配置为具有调用功能,并且我可以调用该机器人,但它返回一条语音消息:“您目前还不能与该机器人交谈,但我们正在努力解决它”。

我关注了this制作机器人的 github 示例。我将 Controller 更换为 Azure 功能。 Azure calling function当我按下 Skype 中的调用按钮时,我确实看到 Azure 门户中已达到我的功能,但我的日志中出现以下错误:

Microsoft.Azure.WebJobs.Host.FunctionInvocationException : 
Exception while executing function: call
---> Autofac.Core.DependencyResolutionException : An error occurred during the activation of a particular registration. See the inner exception for details.
Registration: Activator = ICallingBot (DelegateActivator),
Services = [Microsoft.Bot.Builder.Calling.ICallingBot],
Lifetime = Autofac.Core.Lifetime.RootScopeLifetime,
Sharing = Shared,
Ownership = OwnedByLifetimeScope
---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration:
Activator = CallingBotService (DelegateActivator),
Services = [Microsoft.Bot.Builder.Calling.CallingBotService, Microsoft.Bot.Builder.Calling.ICallingBotService],
Lifetime = Autofac.Core.Lifetime.RootScopeLifetime,
Sharing = Shared,
Ownership = OwnedByLifetimeScope
---> An error occurred during the activation of a particular registration. See the inner exception for details.
Registration:
Activator = CallingBotServiceSettings (DelegateActivator),
Services = [Microsoft.Bot.Builder.Calling.CallingBotServiceSettings],
Lifetime = Autofac.Core.Lifetime.RootScopeLifetime,
Sharing = Shared,
Ownership = OwnedByLifetimeScope
---> Bot calling configuration is invalid, callback url: is not a valid url!
(See inner exception for details.)
(See inner exception for details.)
(See inner exception for details.)
---> Autofac.Core.DependencyResolutionException :
An error occurred during the activation of a particular registration. See the inner exception for details.
Registration: Activator = CallingBotService (DelegateActivator),
Services = [Microsoft.Bot.Builder.Calling.CallingBotService,
Microsoft.Bot.Builder.Calling.ICallingBotService],
Lifetime = Autofac.Core.Lifetime.RootScopeLifetime,
Sharing = Shared,
Ownership = OwnedByLifetimeScope
---> An error occurred du…

它似乎在提示回调网址,我确实找不到如何设置。我尝试在 local.settings.json 文件中的“Microsoft.Bot.Builder.Calling.CallbackUrl”键下提供它,但这没有帮助。

实际上可以使用 Azure 函数机器人处理 Skype 调用吗?如果是的话,我做错了什么?

编辑1:

在应用程序设置中添加回调消除了我在日志中遇到的错误。不幸的是,Skype 机器人仍然回复:“您还不能与该机器人交谈,但我们正在努力解决”。我已将此问题发布在 this github也是如此。

最佳答案

回调 URL 应设置为应用程序设置。请转到您的 Function App,然后在概述> 应用程序设置> 应用程序设置部分下添加名为 Microsoft.Bot 的新设置。 Builder.Calling.CallbackUrl

关于azure - 如何使用 Azure 函数机器人进行 Skype 通话?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50590652/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com