For our purposes we need to be able to change the google endpoint from the default to eu-speech.googleapis.com to be GDPR compliant in Europe. I thought it might be useful to make this configurable.
The sample rate is also something which we wanted to be able to change. I thought that I might add an extra parameter to uuid_google_transcribe2 to achieve this. If the parameter is not passed then the default remains 8000 Hz as it was before the change. BTW in making this change I also noticed a bug in checking the number of parameters passed to uuid_google_transcribe2. The wrong index was being used to check this which meant that the process crashed if no play_file parameter was passed along with the model name.
The third feature of this pull request has already been submitted as a separate pull request #118
For our purposes we need to be able to change the google endpoint from the default to
eu-speech.googleapis.com
to be GDPR compliant in Europe. I thought it might be useful to make this configurable. The sample rate is also something which we wanted to be able to change. I thought that I might add an extra parameter touuid_google_transcribe2
to achieve this. If the parameter is not passed then the default remains 8000 Hz as it was before the change. BTW in making this change I also noticed a bug in checking the number of parameters passed touuid_google_transcribe2
. The wrong index was being used to check this which meant that the process crashed if noplay_file
parameter was passed along with the model name. The third feature of this pull request has already been submitted as a separate pull request #118