Hi,

This isn't really a Django problem to solve, it's more general than that.
First you need the client to record and send an audio file of their mic
recording. This is likely something you want to do in JavaScript, as it is
something that they will have to do on their machine - the server does not
have access to their microphone. I believe you want this:
https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

After that, converting audio to text is a hard problem. However luckily it
has been solved by several third parties (e.g. Google). So you can rely on
a third party package to do the conversion for you e.g.
https://github.com/Uberi/speech_recognition#readme

- Nick


‪On Mon, May 24, 2021 at 12:40 PM ‫מוריה יצחקי‬‎ <moriyal...@gmail.com>
wrote:‬

> Hello everyone
> I want to allow my app to receive input from a microphone
> I would be happy for help on how to do this in the visual section as well:
> how to put a microphone that allows you to type from the user in HTML and
> how to convert the audio to the text in Python
> Will really really help me
> thank you very much
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2be50a50-946c-4cbd-8041-70848cc52bcen%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2be50a50-946c-4cbd-8041-70848cc52bcen%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGuvt93Kf%3DrK2xLoZ3QhK1HPLn%3Ds0k5wHcnCL82piQr%3DFn8m_g%40mail.gmail.com.

Reply via email to