Introduction
Enswitch can be configured to use Google Cloud to transcribe voicemails and to store recordings.
To configure Google Cloud integration
- On all Enswitch machines, do:
- cpanm Crypt::OpenSSL::RSA JSON::WebToken URI::Encode
- Create a project in the Google Cloud console.
- Open the project settings and find "Service Accounts".
- Create a new service account and generate a new key. You should see a .json file download prompt.
- Grant the "Cloud Storage - Storage Admin" role to the service account.
- Save the .json file on the Enswitch machine, for example in /etc/enswitch.
- Set the Enswitch "Google Cloud service application json file path" configuration setting to the path of the .json file.
- In the Google storage console create two buckets, one for storing recordings, and one for temporary storage of transcriptions.
- Set the Enswitch "Google Cloud bucket" and "Google cloud temporary bucket for speech API" configuration settings.
If using Google Cloud to transcribe voicemails, also do:
- Open the Google Cloud console and search for APIs & Services.
- Open the credentials tab.
- Create a new API key.
- Set the Enswitch "Google Cloud speech recognition authentication key" configuration setting.
- Set each Enswitch mailbox to use transcription as desired.
If using Google Cloud to store recordings, also do:
- Set the Enswitch "Recordings storage location" configuration setting to "Google ".
- Move the recordings to Google Cloud. Run this command on one machine only:
- enswitch move_recordings_storage local google_cs
- Run "enswitch restart" on all machines to make the changes take effect.
- Set each Enswitch record group to use transcription as desired.