botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Cortana] How to setup Chatbot on Raspberry Pi with Voice Recognition?

Open maheshksingh opened this issue 9 years ago • 8 comments

Bot Info

  • SDK Platform: .NET
  • Active Channels: Skype, Slack, Direct Line, (Yet to configure the Cortana Channel)
  • Deployment Environment: Azure Bot Service

Issue Description

Hello there, We at Volvo are trying to make the Microsoft Chatbot go headless, meaning no UI, and that can be used at assembly lines based on voice commands, without physically typing the wake up commands.

Now we have the following options: Option1: Use the Win 10 IOT core on RPI, and use the Cortana as the channel and use the Cortana to ask our BOT to perform the task for us.

Steps with Option1:

  • We haven't tried this yet, but it needs the personal MSA account for BOT registration and the same account should be used for Azure services, as well as for Cortana
  • Then install the Win 10 IOT core on RPI, Enable Cortana with the same MSA account, and trigger the Cortana asking to wake up the BOT

Issues with Option1:

  • Cannot customize the wake up call (Hello Cortana.. ask BOT to check order status), instead can we wake up the BOT directly?
  • Secondly, not sure if we restart the RPI, and say (Hello Cortana), will that automatically trigger the Cortana

Is there any other way/option of making the Microsoft BOT headless, ???

Please suggest

Thanks.

maheshksingh avatar Nov 27 '17 04:11 maheshksingh

@maheshksingh great question.

Currently Cortana is available on Windows 10 and the H&K Invoke Speaker.

For more on supported devices, checkout: https://www.microsoft.com/en-us/cortana/devices

nwhitmont avatar Nov 27 '17 05:11 nwhitmont

Hi @maheshksingh - I found some additional information which may help.

You can now setup Cortana on Windows IoT Core (preview):

IoT Core is an edition of Windows 10 and is optimized for small-footprint and low-cost IoT devices. Cortana is enabled on IoT Core in the Windows 10 Creators Update. It is in preview now.

Currently, IoT Core requires that the device have a screen, but that could change once more features are added to the IoT platform as it moves toward GA.

From the article:

  • The device must have internet connection.
  • The user must have a Microsoft account (MSA) which is in the form of [email protected], [email protected] or [email protected].
  • The user is required to sign in using their MSA on the device to utilize Cortana.
  • The device must have a display.
  • A microphone and speaker are required for speech interaction with Cortana.
  • An OEM must follow the guidance provided for the design and development of audio input devices outlined in the Microsoft Speech Platform Specification.

Video overview: https://channel9.msdn.com/Blogs/One-Dev-Minute/Cortana-on-Windows-10-IoT-Core

For more details see: https://docs.microsoft.com/en-us/windows/iot-core/extend-your-app/cortanaoniotcore

nwhitmont avatar Dec 01 '17 01:12 nwhitmont

Does it still require a screen? I couldn't find any information related to this requirement. If it requires, how have they managed to have in on Harman Kardon Invoke?

mirsaeedi avatar Nov 27 '18 14:11 mirsaeedi

Hey

Yes we managed to make it work on invoke... With one limitation.. That the botlet won't work for corporate accounts and works only on Microsoft or personal id's...

Thanks

On Tue, Nov 27, 2018, 7:42 PM Ehsan Mirsaeedi <[email protected] wrote:

Does it still require a screen? I couldn't find any information related to this requirement. If it requires, how have they managed to have in on Harman Kardon Invoke?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/3828#issuecomment-442071904, or mute the thread https://github.com/notifications/unsubscribe-auth/AYxcfNzWA_qMAs5jT7XJBL_YWXqYU2Joks5uzUhdgaJpZM4QrHN1 .

maheshksingh avatar Nov 27 '18 15:11 maheshksingh

Thanks @maheshksingh. So, you mean that having a screen is no more a requirement for Cortana on Windows IoT Core? Can you provide me with a link to this change?

mirsaeedi avatar Nov 27 '18 15:11 mirsaeedi

I don't have a doc... What u do is setup the cortana with the screen initially... Then login the iot core desktop app and set cortana as the startup program... Then disconnect the screen and reboot the Raspberry... Then when it starts the cortana starts by default and you won't need a screen.. Just say hey cortana and wait for a prompt sound 🔊... You are done

Regards

On Tue, Nov 27, 2018, 8:45 PM Ehsan Mirsaeedi <[email protected] wrote:

Thanks @maheshksingh https://github.com/maheshksingh. So, you mean that having a screen is no more a requirement for Cortana on Windows IoT Core? Can you provide me with a link to this change?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/3828#issuecomment-442094660, or mute the thread https://github.com/notifications/unsubscribe-auth/AYxcfOtkfZN_JcG9v_JLxbyL2RvSkYSWks5uzVcCgaJpZM4QrHN1 .

maheshksingh avatar Nov 27 '18 15:11 maheshksingh

To rephrase the sentence.. By saying... Login win 10 iot core desktop app.. mean.. You need to login ur pi from the iot core desktop app using its ip address.... Just incase am confusing u.. .

Regards

On Tue, Nov 27, 2018, 8:53 PM Mahesh Singh <[email protected] wrote:

I don't have a doc... What u do is setup the cortana with the screen initially... Then login the iot core desktop app and set cortana as the startup program... Then disconnect the screen and reboot the Raspberry... Then when it starts the cortana starts by default and you won't need a screen.. Just say hey cortana and wait for a prompt sound 🔊... You are done

Regards

On Tue, Nov 27, 2018, 8:45 PM Ehsan Mirsaeedi <[email protected] wrote:

Thanks @maheshksingh https://github.com/maheshksingh. So, you mean that having a screen is no more a requirement for Cortana on Windows IoT Core? Can you provide me with a link to this change?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/3828#issuecomment-442094660, or mute the thread https://github.com/notifications/unsubscribe-auth/AYxcfOtkfZN_JcG9v_JLxbyL2RvSkYSWks5uzVcCgaJpZM4QrHN1 .

maheshksingh avatar Nov 27 '18 16:11 maheshksingh

@maheshksingh Thanks a lot :)

mirsaeedi avatar Nov 29 '18 00:11 mirsaeedi