question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Play audio from a Youtube stream

See original GitHub issue

Expected 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:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
betterclevercommented, May 23, 2018

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:

@betterclever https://github.com/betterclever , does it consist of any x11 libraries?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/fossasia/susi_linux/issues/121#issuecomment-391347519, or mute the thread https://github.com/notifications/unsubscribe-auth/APjbKsxEUFquj7UeO08zdXEMsunKQom1ks5t1WS9gaJpZM4UHmW4 .

0reactions
sansyroxcommented, Jul 11, 2018

It is fixed and hence can be closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Play YouTube Audio Only On Desktop and Android
The extension is extremely easy to use. Just download and install Audio Only YouTube in Chrome. Now open any YouTube video and only...
Read more >
How to play Audio only on YouTube - The Windows Club
To make it work, open a video then click on the gear icon. The icon is only visible after hovering the mouse pointer...
Read more >
Is there a website that lets me stream YouTube audio, but not ...
You can simply search for any videos · It will show results from the videos available on YouTube. · Just click the song...
Read more >
How to Play YouTube Audio Only to Save Bandwidth?
Audio Only YouTube is an open-source Chrome extension that enables you to stream YouTube music only without video image to save Internet usage ......
Read more >
Play audio only on YouTube to save bandwidth - gHacks
Audio Only YouTube is a browser extension for Google Chrome to play the audio stream of YouTube videos only. The video hosting site...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found