Comments (6)
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.
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.
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.
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.
Hm - I'm going to try to use https://fe-pi.com/products/fe-pi-audio-z-v2
from go-cast.
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)
- "Let others control your casted media" HOT 1
- New CAF. HOT 1
- cast does not accept --name option HOT 3
- url command points to broken page HOT 6
- what video format does it support HOT 1
- casting .ts file HOT 1
- Command to play not working HOT 1
- Is go-cast supported on raspberry pi HOT 2
- Resume
- Error with using hostname HOT 1
- Sending to port other then 8009 HOT 1
- [ERR] mdns: Failed to bind to udp6 port: listen udp6 [ff02::fb]:5353: setsockopt: not supported by windows HOT 3
- Casting in 1080 HOT 2
- How to pass headers for auth?
- Stops casting after a minute HOT 1
- Discovery Error
- context deadline exceeded
- Request for mute command
- build problem GOARCH=mipsle HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-cast.