wardmundy
Nerd Uno
- Joined
- Oct 12, 2007
- Messages
- 19,206
- Reaction score
- 5,227
We're going to write this up on Nerd Vittles in a couple weeks, but we wanted to give the pioneers a head start.
The scripts use IBM's Bluemix Speech to Text API to transcribe voicemails and then deliver both the transcribed message and the .WAV or .MP3 attachment via email.
Bluemix services are free for the first month. After that, your first 1,000 STT minutes each month are free. Then it's $.04 per minute.
We've taken Nicolas Bernaerts' sendmailmp3 script and reworked it to support IBM's Bluemix API.
We've completed the scripts for Incredible PBX for Wazo and Incredible PBX for the Raspberry Pi 3 and Incredible PBX 13 (CentOS or Ubuntu 14).
Create an IBM Bluemix Speech to Text Account
1. Create Bluemix account here: https://console.ng.bluemix.net/registration/?target=/catalog/?category=watson
2. Confirm registration by replying to email
3. Login to Bluemix: https://console.ng.bluemix.net/login?state=/catalog/?category=watson
4. Agree to T&C, name your organization, and name your space (STT)
5. Choose Watson Speech to Text service and click Create
6. When Speech to Text-kb opens, click Service Credentials tab
7. In Actions column, click View Credentials and copy your username and password
8. Insert deciphered Bluemix API username and password below.
9. Logout by clicking on image icon in upper right corner of dialog window
Install IBM Bluemix STT Engine for Incredible PBX for Wazo
1. Log into your Incredible PBX for Wazo server as root using SSH/Putty and issue the following commands:
Code:
cd /usr/sbin
wget http://incrediblepbx.com/sendmailibm.tar.gz
tar zxvf sendmailibm.tar.gz
rm -f sendmailibm.tar.gz
3. Edit bluemix-test and insert your Bluemix credentials on the first two lines. Save the file.
4. Copy the updated sendmailibm file to sendmail:
Code:
cd /usr/sbin
cp -p sendmailibm sendmail
6. Result should be: please record your message after the beep
7. Make certain that you have set up a voicemail account for a Wazo extension with your email address
8. Place a test call and record a voicemail when prompted
9. Your message will be transcribed and delivered via email
Install IBM Bluemix STT Engine for Incredible PBX for Raspbian 8
1. Log into your Incredible PBX for Raspberry Pi 3 server as root using SSH/Putty and issue the following commands:
Code:
cd /usr/sbin
wget http://incrediblepbx.com/sendmailibm-raspi.tar.gz
tar zxvf sendmailibm-raspi.tar.gz
rm -f sendmailibm-raspi.tar.gz
3. Edit bluemix-test and insert your Bluemix credentials on the first two lines. Save the file.
4. Copy the updated sendmailmp3.ibm file to sendmailmp3:
Code:
cd /usr/sbin
cp -p sendmailmp3.ibm sendmailmp3
6. Result should be: your dictation is now being processed and emailed please wait
7. Make certain that you have set up voicemail for a RasPi extension with your email address
8. Log into the GUI and choose Settings, Voicemail Admin, Settings:
Code:
format: wav|wav49
mailcmd: /usr/sbin/sendmailmp3
9. Place a test call and record a voicemail when prompted
10. Your message will be transcribed and delivered via email
Install IBM Bluemix STT Engine for Incredible PBX 13
1. Log into your Incredible PBX 13 server as root using SSH/Putty and issue the following commands:
Code:
cd /usr/local/sbin
wget http://incrediblepbx.com/sendmailibm-13.tar.gz
tar zxvf sendmailibm-13.tar.gz
rm -f sendmailibm-13.tar.gz
3. Edit bluemix-test and insert your Bluemix credentials on the first two lines. Save the file.
4. Copy the updated sendmailmp3.ibm file to sendmailmp3:
Code:
cd /usr/local/sbin
cp -p sendmailmp3.ibm sendmailmp3
6. Result should be: we are now transferring you out of the company directory please hold on for further assistance
7. Make certain that you have set up voicemail for an Incredible PBX 13 extension with your email address
8. Log into the GUI and choose Settings, Voicemail Admin, Settings:
Code:
format: wav|wav49
mailcmd: /usr/local/sbin/sendmailmp3
9. Place a test call and record a voicemail when prompted
10. Your message will be transcribed and delivered via email
Last edited: