-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream output & file processing #1
Comments
Hi @kqvanity, No problem for the feature request: I've already thought to implement it and I'm going to do it in the next few days. As to the problem you mentioned: could you please provide me with some more info to reproduce the issue? I would need at least the exact command you typed and the FLAC file itself (upload it somewhere, e.g. Google Drive). But bear in mind that if you don't pass the right sample rate of the audio file, the Google service won't be able to properly transcribe the input audio. |
Thanks for your time
I've tried to grab the sample rate using gstt --sample-rate --file Using\ Wget\ As\ A\ Download\ Manager.flac
flag provided but not defined: -sample-rate
Usage:
gstt [OPTION]... --interim --continuous [--file FILE]
Options:
--verbose
--file, path of audio file to trascript
--key, api key built into chromium
--language, language of the recording transcription, use the standard webcodes for your language, i.e. 'en-US' for English-US, 'ru' for Russian, etc. please, see https://en.wikipedia.org/wiki/IETF_language_tag
--continuous, to keep the stream open and transcoding as long as there is no silence
--interim, to send back results before its finished, so you get a live stream of possible transcriptions as it processes the audio
--max-alts, how many possible transcriptions do you want
--pfilter, profanity filter ('0'=off, '1'=medium, '2'=strict)
--user-agent, user-agent for spoofing
--sample-rate, audio sampling rate
|
Hi @kqvanity, there was a typo with the sample rate that is now fixed, sorry. Anyway, I looked at your file and I found out that it is composed of two channels. You can convert it to 1 channel with: Then, use the new flag to write output on the same line as follows: |
Great. it does work now. Not aware of the complexity involved, but was wondering if it could be processed on the fly. Be it audio/video stream (dual-channel live streams which is only processed IRT). performance-wise, re-encoding would take place either way.
Not available yet. Only continuous stream. |
Make sure you are using the latest version (tag v0.1.0). |
my bad. The binary was
|
hi @kqvanity, sorry for the late reply. erasing the entire screen (including the terminal prompt) is the intended behavior. Why would you want to preserve it? It makes no sense to me. Reading from live input (e.g.) still works indeed. Just wait a little more, because I am skipping non-final intermediate transcriptions. They are of little use IMO. |
|
Actually you can still pipe the command output to a file, just remove the ANSI escape codes at the end of each transcription segment. Otherwise, just do not use that flag. |
I think it's a bit intrusive for it to clear the terminal. You could make it an optional flag. |
Looking for a feature adjustment
[feature] Can continuous stream be a single chunk of text that gets updated with new transcriptions, instead of printing on new lines
[Bug] File processing doesn't seem to work. I pass an 8M flac audio file, so gstt takes it time, but output nothing at the end
The text was updated successfully, but these errors were encountered: