login | register
Tue 02 of Dec, 2008 [02:59 UTC]

voip-info.org

Discuss [7] History

Asterisk cmd Dictate

Created by: dblood,Last modification on Mon 29 of Oct, 2007 [16:20 UTC] by jon.webster

Dictate

Asterisk now comes with an application to facilitate dictations, see bug 3893.

Synopsis

 Virtual Dictation Machine


Description

 Dictate([<base_dir>[|<filename>]])
Start dictation machine using optional base dir for files.



Options

dial 1 to toggle record and playback modes
dial 0 for help
dial * pause/unpause
dial # to enter a new filename

Playback Mode Options

dial 2 to toggle fast playback (speed 1x, 2x, 3x, 4x)
dial 7 to seek backwards a few frames
dial 8 to seek forwards a few frames

Record Mode Options

dial 8 to erase the whole file and start again.

File Format

The files are recorded in raw format and can be changed using sox.
ex: sox -r 8000 -w -c 1 -s raw input file output file

Examples

 exten => 1000,1,Dictate()
 exten => 1100,1,Dictate(/tmp/dictations)
 exten => 1200,1,Dictate(/tmp/dictations|1234)


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


Comments

Comments Filter
222

333Re: medical dictation

by Phillip, Friday 20 of April, 2007 [16:50:47 UTC]
I would be interested in the application Vincent mentioned. Does anyone have info on this?
222

333medical dictation

by drvincenttima, Tuesday 29 of August, 2006 [01:18:28 UTC]
Hi James
Where is your hospital located? I have an application that would be of value to you, and it
wraps around the dictation system that we have configured.
Cheers,
Vincent
222

333Re: An alternative

by jnennemann, Tuesday 22 of August, 2006 [15:35:15 UTC]
I have considered that and may go that way for now (cron job). The main issue is that the script wouldn't recognize that a file was still in-progress. Granted that most times a dictation wouldn't last longer than a few minutes.
222

333An alternative

by gsummey, Thursday 03 of August, 2006 [07:40:09 UTC]
Hi James,

I'm not 100% clear on what your goals are with the dictate command, but it seems like everthing you want to do after the user hangs up is system commands. If that is the case, what if you just use Cron and have it run every five minutes or so? I know that's not a perfect, clean solution but it might work. I know I wouldn't like it either, but I've seen others trying to execute things after hangup and remember they were not having much success. Please keep in mind, I'm a noob too.

Hope this helps.
222

333Re:

by jnennemann, Thursday 08 of June, 2006 [20:58:57 UTC]
I still haven't. I have posted on AsteriskGuru forms and Digium forums with NO response. Either no one knows or I am just such a noob at dialplans and asterisk that no one will help. To work around the issue I used the record command. I still have the same problem if the caller hangs up; nothing else executes after the hang up. This really sucks. I have been looking through all the documentation I can get my hands on.
222

333

by newmember, Wednesday 07 of June, 2006 [16:00:25 UTC]
James how did you make out?
222

333Usage confusion

by jnennemann, Tuesday 06 of June, 2006 [21:06:09 UTC]
I think that this command is great. I hope it can save my small rural hospital 40k. I am a little confused about it's usage within a dial plan. Does anyone know why the following stops at the dictate cmd? Why doesn't it go on with the rest of the dialplan?

custom-dic-rad
exten => s,1,Dictate(/var/spool/asterisk/dictate/radiology)
exten => s,2,System(for i in /var/spool/asterisk/dictate/radiology/*.raw; do /usr/bin/sox -r 8000 -w -c 1 -s $i /var/spool/asterisk/dictate/radiology/$(basename $i .raw).wav; done)
exten => s,3,System(date > /var/spool/asterisk/dictate/radiology/Message.txt)
exten => s,4,System(mutt -s "Dictation from workgroup Radiology" -a /var/spool/asterisk/dictate/radiology/*.wav dictation@hospital.local < /var/spool/asterisk/dictate/radiology/Message.txt)
exten => s,5,System(rm -f /var/spool/asterisk/dictate/radiology/*.raw)
exten => s,6,Wait,2
exten => s,7,Hangup