osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

speech_to_text python command not working


With that information, my guess would be that the way the web service
reports errors has changed, and the Python library is failing to
handle errors nicely for you, but the basic functionality still works.
So that's somewhat good news, as you can at least handle anything that
*would* work, even if it's going to be hard to understand the reason
for failures without a friendly message like "File too big"...

On 18 September 2017 at 10:09, pizza python <pizzapython at gmx.com> wrote:
>    Hi all. I tried the same command with a different, smaller file. This file
>    is a 90-kilobyte ogg file. The other one was a 26-megabyte ogg file.
>
>    Wtih this smaller file, there was no error.
>
>
>     speech_to_text -u myUsername -p myPassword -f html -i audio-file.ogg
>    transcript.html
>    Starting Upload.
>    [===============================================================================================================================================================================================]
>    100%
>    Upload finished. Waiting for Transcript
>    Speech > Text finished.
>
>
>    In the same folder as the ogg file was an html file with the transcript.
>    So I guess the python command works some times. I'm still not sure if it
>    just doesn't work on large files.
> --
> https://mail.python.org/mailman/listinfo/python-list