TUTORIAL VM to email with MP3 attachments

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
15,231
Reaction score
2,666
FYI: I've uploaded a new installmp3stt.sh script to http://pbxinaflash.com/installmp3stt.sh due to a bug in the ARM test for Raspberry Pi installs. This version gives you the option of transcribing or not. Just set the transcribe variable to 1 if you want the 15-second transcriptions.
 

DragonHawk

Guru
Joined
Sep 9, 2010
Messages
26
Reaction score
1
Looks like the ARM issue isn't fixed. when I ran it on my pie it tried to use yum. When I ran the apt-get commands manually, it couldn't find unix2dos, so I installed apt-get install tofrodos instead. It all works great now.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
15,231
Reaction score
2,666
DragonHawk: Please run this command on your Raspberry Pi and tell us what the results are...

Code:
cat /proc/cpuinfo | head -n 1 | cut -f 2 -d " "
If it's not ARMv6-compatible, then please run the following and paste the results:

Code:
cat /proc/cpuinfo
 

[email protected]

Active Member
Joined
May 22, 2013
Messages
126
Reaction score
37
Location
Canada
My Pi stats: ARMv6-compatible and
Code:
Processor       : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2708
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
15,231
Reaction score
2,666
Found it. Always a problem when you start with somebody else's code. :(

Change #!/bin/sh to #!/bin/bash and rerun the script. Sorry.

Patched version has been uploaded for others. Thanks.
 

DragonHawk

Guru
Joined
Sep 9, 2010
Messages
26
Reaction score
1
No problem. And I am getting ARMv6-compatible as my result as well. Thanks for the script Ward!
 

ou812

Guru
Joined
Oct 18, 2007
Messages
465
Reaction score
70
Not sure were the 15 sec limit is set but is it possible to get more than 15 sec of transcription say about 1 min, even if its payable service from google.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
15,231
Reaction score
2,666
15 sec. is set by Google. No, you can't change it or pay for more.
 

Oliver Marshall

New Member
Joined
Jul 10, 2013
Messages
2
Reaction score
0
Hi

We have a problem with that script. The voicemail emails translation feature just shows us "Transcription (First 15 Seconds):" and then nothing else. We've enabled transcription in the install script and re-run it a few times. Otherwise, the script works fine.

Is there anything else we need to enable or any changes to asterisk we need to make which aren't covered by the install script?

Olly
 

legallink

New Member
Joined
Sep 12, 2011
Messages
10
Reaction score
0
Location
Red Bank
Installed on Freepbx 2.10.1.9 ; PIAF 2.0.6.1 Asterisk 1.8

Works as promised (save the transcription/translation, but I didn't want that anyways).
 

Jake

Active Member
Joined
Aug 27, 2010
Messages
279
Reaction score
39
I just installed this and everything is working like a champ. I did have to change the script like Ward said to enable transcription and I also noticed that there is a new version of the download "asterisk-speech-recog" it is version .5 and I just changed the script from .4 to .5 and everything works! Hope this helps.
 
  • Like
Reactions: wardmundy

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
15,231
Reaction score
2,666
I just installed this and everything is working like a champ. I did have to change the script like Ward said to enable transcription and I also noticed that there is a new version of the download "asterisk-speech-recog" it is version .5 and I just changed the script from .4 to .5 and everything works! Hope this helps.

Thanks, Jake: I updated the script to the latest version.
 

Jake

Active Member
Joined
Aug 27, 2010
Messages
279
Reaction score
39
From the Changelog:

Added SSL support. Interrupt keys can now be defined
by the user. Added (optional) Beep indication before recording.
Recording time is now conrtolled by silence detection. There is no
absolute timeout, the recording will terminate after a
user defined (3 sec by default) period of silence, or the pressing
of the interrupt key(s).
Added a sample AGI script that submits queries to WolframAlpha and
sets the answer as a dialplan variable.
I've enabled SSL as a test and it works. Not that my privacy is really respected anyways by "those" who like to snoop :)

Also, I've been try to figure out how the text of the transcription is appended to the email. I'd like to include the transcription in the text messages I have emailed when a voicemail comes in. I've done some digging but haven't got it yet.
 

krzykat

Guru
Joined
Aug 2, 2008
Messages
1,578
Reaction score
427
Location
South Florida
Log into your server as root. If you want transcription, before running the script, edit installmp3stt.sh and change transcribe=0 to transcribe=1.

Code:
cd /root
wget http://pbxinaflash.com/installmp3stt.sh
chmod +x installmp3stt.sh
./installmp3stt.sh
Log into FreePBX 2.11 and choose Settings, Voicemail Admin, Settings:

Code:
format: wav|wav49
mailcmd: /usr/sbin/sendmailmp3

It's in the code of /usr/sbin/sendmailmp3 - not sure if this file has been updated, but look around line 76 and you'll find it append the transcription to the e-mail
 

Twilight Sparkle

♕ Princess
Joined
Jul 21, 2013
Messages
318
Reaction score
26
Location
Ponyville
it only gives me 15 sec from voice to text in my email?
how do i expand it from 15 sec to how ever long the voicemail is?
the voice to text is not 99.1% word for text! its very very omg ....... wow!
 

womble1

Guru
Joined
Oct 19, 2008
Messages
632
Reaction score
6
Location
UK
not getting any transcription install went OK it seems without error...
 

Oliver Marshall

New Member
Joined
Jul 10, 2013
Messages
2
Reaction score
0
We've never had reliable transcription. Not even the first 15 seconds or whatever it's meant to be. Not the end of the world but would be nice to have
 

Members online

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,446
Messages
137,997
Members
14,613
Latest member
roshan2019