Coder Social home page Coder Social logo

Comments (2)

VaysseRobin avatar VaysseRobin commented on June 3, 2024

Not sure if it's related but I also had the error index.js:125 Uncaught (in promise) TypeError: Failed to execute 'createMediaStreamSource' on 'AudioContext': parameter 1 is not of type 'MediaStream'. with the "Start Recording" button doing nothing. I solved that by simply turning off my add blocker.

I'm hosting my server with docker on an Ubuntu computer so it could not be the same problem but I guess it can be helpful for some people.

from streamlit-audio-recorder.

stefanrmmr avatar stefanrmmr commented on June 3, 2024

Hi @avidale, to ensure that 'createMediaStreamSource' can be connected successfully, I can advise you to look into these solution approaches - these may mitigate the issue at hand. Also, big thanks to @VaysseRobin for your support. 🤙🏻

  1. Make sure that your deployment is configured in a way that the component targets the user's microphone (browser media-stream API) and not the microphone of the deployment server's (Azure, AWS, etc.) audio channels.

  2. Ensure that your streamlit app deployment is https-enabled. Look into obtaining certificates from Let's Encrypt using certbot, follow the steps as instructed here: https://docs.streamlit.io/library/advanced-features/https-support

  3. On the user's end, ensure that the web app is granted access to the user's microphone (via browser pop-up). If the pop-up doesn't appear, ensure to disable add-blockers and access the app via https.

from streamlit-audio-recorder.

Related Issues (17)

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.