Here is how I would go about it.
0. You could do this with Jack, but ... too long instructions
1. start: pavucontrol &
select input devices tab
show: All Input Devices
you should see your monitor device - right?
2. Get everything ready to play your sound file.
3. go to you Google-API webpage and enable the microphone for speech to text
in pavucontrol
- under Recording tab you should see Google chrome using
one of your input devices - probably microphone
- change that to your monitor device
if there is a speech coming from the monitor device - huraaah
if there is no speech coming out - chrome will time out
- and you will need to be faster the next time you enable the microphone
Alternatively, you could just use the real service - free of charge for up to 60
minutes - and just upload the file to Google and get the text back. That way you
would probably get back your text in seconds instead of playing it for the whole
hour.
good luck,
Tomas
On Wed, 2019-10-16 at 20:08 -0700, logical american wrote:
> Hello all:
>
> I am trying to convert a large wav audio file into text (speech-to-text
> transcription). I discovered that Google Chrome has their Web Speech API
> which does this, but from the microphone input only which is a clickable
> radio button on their web page
> https://www.google.com/intl/en/chrome/demos/speech.html
>
> I have pulse audio on my Linux OpenSuse Leap 15.1 system and it has a
> built-in audio monitor which can function as an input device.
>
> How do I successfully trick Google Chrome into believing that the
> monitor is a microphone? I am facing the problem of redirecting the
> audio streams.
>
> Has anyone been able to successfully go xxx.wav ---> text ??
>
> Thanks for tips on successfully doing this.
>
> If you are using an alternate speech-to-text api, which works well under
> Linux, I would also be interested to know.
>
> Thanks!
>
> - Randall
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug