drachtio / drachtio-freeswitch-modules

A collection of open-sourced freeswitch modules that I use in various drachtio applications
MIT License
169 stars 114 forks source link

Make Google Endpoint and Sample Rate Configurable #125

Closed entenschnabel closed 8 months ago

entenschnabel commented 11 months ago

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

entenschnabel commented 8 months ago

Closing in favour of submitting separate PRs as discussed above.