Git Product home page Git Product logo

Comments (6)

barnybug avatar barnybug commented on September 3, 2024

Hey - you could potentially do this - you'd need a webserver serving up an audio stream of the data on an http url, and then you can start the cast playing from this by doing cast --name Chromecast media play http://streamurl/. It'd play wav, mp3, etc.

As to serving up a microphone as a stream - fmpeg/ffserver might be able to (not tested):
https://ubuntuforums.org/showthread.php?t=1544946

from go-cast.

TonyApuzzo avatar TonyApuzzo commented on September 3, 2024

There are many ways to do this using a PC as an intermediary.

  • https://github.com/acidhax/chromecast-audio-stream/
  • https://www.addictivetips.com/windows-tips/how-to-stream-audio-from-your-pc-or-mac-to-chromecast/
  • BubbleUPNP can create a DLNA endpoint on your PC (or Android) that can forward to the Chromecast Audio and you can use that to direct a microphone to your chromecast.
  • On Linux there is a configuration for pulseaudio to do it as well, but I've not done it.
  • As far as forwarding a recording from the line-in or mic input on your PC you should be able to do that once you get the PC's audio streaming to the the Chromecast. Then set the microphone/input properties to "listen" in control panel. On my Windows 10 it is Settings > Sound > Input > Device Properties > Listen > Check the "Listen to this device" button.

from go-cast.

dmurph avatar dmurph commented on September 3, 2024

Interesting... I'm basically working with a line-in aux cable, and I currently have a couple different Raspberry Pi's (and a macbook if I need) to work with.

I'll look into hosting the ffmpeg server, otherwise it looks like maybe I could hook up to the input device in alsa?

from go-cast.

TonyApuzzo avatar TonyApuzzo commented on September 3, 2024

Yeah, for RPi you can use http://mkchromecast.com/ and Alsa but you'll need a USB soundcard that has an input since the basic RPi hardware doesn't have audio-in. There are lots of options but nothing is a perfectly simple solution AFAIK.

from go-cast.

dmurph avatar dmurph commented on September 3, 2024

Hm - I'm going to try to use https://fe-pi.com/products/fe-pi-audio-z-v2

from go-cast.

barnybug avatar barnybug commented on September 3, 2024

mkchromecast seems like overkill (python + node.js + ...!) given it's just running ffmpeg underneath. Run ffmpeg, and the cast command above. 1 binary solution for the pi :-)

from go-cast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.