Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Voicetools » Play Recording variable
Play Recording variable [message #636909] Wed, 03 November 2010 06:15 Go to next message
Slamet Cahyadi is currently offline Slamet Cahyadi
Messages: 5
Registered: October 2010
Junior Member
I do successfully implement recording in openVXML by using Record component. I could see its result in tomcat's temp directory such as f6511c37c23048d4bbac8aa12c8cdb06916649210080964876.tmp.
And that file seems to be a wav file.
However, I can't play those file with PlayPrompt component.
Anyone have any clue?
Re: Play Recording variable [message #636911 is a reply to message #636909] Wed, 03 November 2010 06:18 Go to previous messageGo to next message
Slamet Cahyadi is currently offline Slamet Cahyadi
Messages: 5
Registered: October 2010
Junior Member
I use "Use value from variable" in PlayPrompt section to play recorded file which is stored in variable. Any help would be appreciated.
Re: Play Recording variable [message #637035 is a reply to message #636911] Wed, 03 November 2010 17:14 Go to previous messageGo to next message
Randy Childers is currently offline Randy Childers
Messages: 121
Registered: July 2009
Senior Member
Hi Slamet. The reason that's not working is because the file reference
in the variable is an actual file reference (as in "c:\lalala.wav", or
whatever is appropriate for the OS the webserver is running on), but
when that is used in a play prompt, the file must be accessible via HTTP.
So, it's up to the developer to move the file to a better location, such
as the tomcat/webapps/ROOT folder -- and then delete it, when you're
done with it.

I know this probably isn't the answer you're looking for, but does that
clear it up for you?

Randy

In <iarcni$lth$1@news.eclipse.org> Slamet Cahyadi wrote:
> I use "Use value from variable" in PlayPrompt section to play recorded
> file which is stored in variable. Any help would be appreciated.
>
Re: Play Recording variable [message #637331 is a reply to message #637035] Fri, 05 November 2010 01:44 Go to previous messageGo to next message
Slamet Cahyadi is currently offline Slamet Cahyadi
Messages: 5
Registered: October 2010
Junior Member
Hi Randy. Thank you for the response. You are correct. You have
already told me that the audio file must be accessible via HTTP in the other thread.
But for this recording situation, the produced file was located in ${TOMCAT_HOME}/temp directory. I copy that file to http directory webpath. But still the file can't be played. I think the problem is the generated wav file.
<record
name="AxisRecord"
beep="false"
dtmfterm="true"
maxtime="90s"
type="audio/x-wav">


How do I switch the audio type so that .3gp or amr is produced instead?
Re: Play Recording variable [message #637756 is a reply to message #637331] Mon, 08 November 2010 12:24 Go to previous message
Randy Childers is currently offline Randy Childers
Messages: 121
Registered: July 2009
Senior Member
Hi Slamet. Can you tell me more about what you're doing? Specifically,
I'm interested in which voice platform you're using, and how you went
about playing the file back.

Currently, the only way to change the recording settings is to modify
the OpenVXML source code -- which is certainly an option, as it's open
source and freely available. You should know that according to the VXML
spec, the only two types of audio format support that are required for
recording and playback are raw audio and WAV -- which is one reason that
it's really odd that you are having trouble playing back the recording.
Other formats are available but these are platform-specific, so you'll
need to consult your platform's documentation to see what your options
are.

Good luck,
Randy


In <ib05cl$ldm$1@news.eclipse.org> Slamet Cahyadi wrote:
> Hi Randy. Thank you for the response. You are correct. You have
> already told me that the audio file must be accessible via HTTP in the
> other thread. But for this recording situation, the produced file was
> located in ${TOMCAT_HOME}/temp directory. I copy that file to http
> directory webpath. But still the file can't be played. I think the
> problem is the generated wav file. <record
> name="AxisRecord" beep="false"
> dtmfterm="true" maxtime="90s"
> type="audio/x-wav">
>
>
> How do I switch the audio type so that .3gp or amr is produced instead?
>
Previous Topic:Play Prompt
Next Topic:N-Best question
Goto Forum:
  


Current Time: Sat Aug 30 04:30:22 EDT 2014

Powered by FUDForum. Page generated in 0.04435 seconds