Play audio from a Youtube stream
See original GitHub issueExpected Behaviour
When susi returns a audio_play action, the hardware which the user is using must play the given audio source. This is a follow-up feature to https://github.com/fossasia/susi_linux/issues/117
Steps to reproduce it
Ask susi “open the pod bay door” - https://api.susi.ai/susi/chat.json?q=open+the+pod+bay+door You will get the following action object:
"actions": [
{
"type": "audio_play",
"identifier_type": "youtube",
"identifier": "7qnd-hdmgfk"
},
{
"language": "en",
"type": "answer",
"expression": "I'm sorry, Dave. I'm afraid I can't do that."
}
]
This means that susi shall do (in that order):
- play the audio from the youtube video with the given ID. Use the “identifier_type” to see that the “identifier” object denotes a youtube ID
- do not use a environment which requires a X11 library. There should be linux tools to grab and play audio from a youtube video.
- write out the answer or speak it (according to the current interface)
In text-based interfaces the writing out makes sense, in headless clients this may be disturbing so we might want to find out how to handle this. However just output both for now. We will have a further issue to make this better
Documentation of the audio_play action
see issue https://github.com/fossasia/susi_linux/issues/117
Would you like to work on the issue?
Please let us know if you can work on it or the issue should be assigned to someone else.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
It should not. It is meant to be a cross-platform app.
On Wed 23 May, 2018, 7:01 PM Sanskar Jethi, notifications@github.com wrote:
It is fixed and hence can be closed