Open SuibhneOFoighil opened 9 months ago
I tested locally on streamlit but only the source machine plays the audio...not sure if the 2 are connected from your issue.
I'm curious to this thread as I'm planning to spin up a cloud instance (debating providers now) I'm wondering if some providers have issues ... streamlit being one since I also am testing on streamlit.
I'll let you now what I find
Hey guys, did you find a fix to this? trying to do something similar
Is there any way to use the
stream
function on the cloud-deployed web app?I'm using it in a very simple Streamlit app. Although it works on my local device, the
stream
function doesn't play any sound on Streamlit cloud or within a Docker container. Specifically, this line just doesn't work:mpv_process.stdin.write(chunk) # type: ignore
. It seems like MPV cannot access the system's audio drivers in streamlit cloud or in a Docker container. Here's the stderror output for thempv_process
on Streamlit cloud:On streamlit cloud, when i list the audio devices with
mpv --audio-device=help"
, this is what I receive:Any advice here? I want to 'hear' the audio on a deployed webapp. It doesn't have to be on streamlit cloud but I want the stream function to work.