|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MediaControlServer
The Media Control API provides media streaming capabilities and common features associated with the manipulation of media streams, such as the following. Conferencing WAV/VOX playback Text-to-Speech Recording Transcoding Multicast Transmit Speech Recognition (via Nuance) It is important to note that there is a close relationship between the Call Control API and Media Control API. The Media Control API is used automatically by the application server to provision media engine connections by the CUAE when using the Call Control API to make or answer calls, unless the calls in question are peer-to-peer negotiated. Generated from CUAE provider package Metreos.MediaControl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface cisco.uc.cuae.legacy.CuaeCommon |
|---|
CuaeCommon.CuaeResult |
| Nested classes/interfaces inherited from interface cisco.uc.cuae.legacy.CuaeCommon |
|---|
CuaeCommon.CuaeResult |
| Method Summary | |
|---|---|
MediaControl.AdjustPlayResult |
adjustPlay(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Integer volume,
java.lang.Integer speed,
MediaControl.AdjustmentType adjustmentType,
java.lang.Long toggleType,
MediaControl.AdjustPlayOptions options)
Modifies the properties of a currently executing play operation. |
MediaControl.DetectNonSilenceResult |
beginDetectNonSilence(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Long nonSilenceTime,
MediaControl.DetectNonSilenceOptions options,
java.lang.Object state)
|
MediaControl.DetectSilenceResult |
beginDetectSilence(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Long silenceTime,
MediaControl.DetectSilenceOptions options,
java.lang.Object state)
|
MediaControl.GatherDigitsResult |
beginGatherDigits(java.lang.String sessionId,
java.lang.String connectionId,
MediaControl.GatherDigitsOptions options,
java.lang.Object state)
|
MediaControl.ManageGrammarResult |
beginManageGrammar(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String grammar1,
MediaControl.Action action,
MediaControl.ManageGrammarOptions options,
java.lang.Object state)
|
MediaControl.PlayResult |
beginPlay(java.lang.String sessionId,
java.lang.String prompt1,
java.lang.String connectionId,
java.lang.String conferenceId,
MediaControl.PlayOptions options,
java.lang.Object state)
|
MediaControl.PlayToneResult |
beginPlayTone(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
java.lang.Long duration,
java.lang.Long frequency1,
java.lang.Integer amplitude1,
java.lang.Long frequency2,
java.lang.Integer amplitude2,
MediaControl.PlayToneOptions options,
java.lang.Object state)
|
MediaControl.RecordResult |
beginRecord(java.lang.String sessionId,
java.lang.String filename,
java.lang.Long expires,
MediaControl.RecordOptions options,
java.lang.Object state)
|
MediaControl.VoiceRecognitionResult |
beginVoiceRecognition(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String grammar1,
java.lang.String prompt1,
java.lang.Boolean voiceBargeIn,
java.lang.Boolean cancelOnDigit,
MediaControl.VoiceRecognitionOptions options,
java.lang.Object state)
|
MediaControl.CreateConferenceResult |
createConference(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Boolean soundToneOnJoin,
MediaControl.CreateConferenceOptions options)
Creates a conference and places the specified connection into it as the 1st participant. |
MediaControl.CreateConnectionResult |
createConnection(java.lang.String sessionId,
java.lang.String mediaTxIP,
java.lang.Long mediaTxPort,
java.lang.String connectionId,
MediaControl.CreateConnectionOptions options)
Establishes both Rx and Tx RTP streams for a new or reserved connection on a media engine. |
MediaControl.DeleteConnectionResult |
deleteConnection(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
MediaControl.DeleteConnectionOptions options)
DeleteConnection can perform one of three distinct operations: release a connection, release a conference and all connections in it, or remove a connection from a conference. |
MediaControl.DetectNonSilenceResult |
detectNonSilence(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Long nonSilenceTime,
MediaControl.DetectNonSilenceOptions options)
DetectNonSilence monitors a connection for an incidence of non-silence. |
MediaControl.DetectSilenceResult |
detectSilence(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Long silenceTime,
MediaControl.DetectSilenceOptions options)
DetectSilence monitors a connection for an incidence of silence. |
MediaControl.GatherDigitsResult |
gatherDigits(java.lang.String sessionId,
java.lang.String connectionId,
MediaControl.GatherDigitsOptions options)
GatherDigits instructs the media engine to watch for DTMF digits on a connection. |
MediaControl.JoinConferenceResult |
joinConference(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
MediaControl.JoinConferenceOptions options)
Moves a connection into an existing conference. |
MediaControl.LeaveConferenceResult |
leaveConference(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
MediaControl.LeaveConferenceOptions options)
Removes a connection from a conference. |
MediaControl.ManageGrammarResult |
manageGrammar(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String grammar1,
MediaControl.Action action,
MediaControl.ManageGrammarOptions options)
Allows a developer to manually manage grammars on the Nuance OSR server. |
MediaControl.ModifyConnectionResult |
modifyConnection(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String mediaTxIP,
java.lang.Long mediaTxPort,
MediaControl.ModifyConnectionOptions options)
Modifies the properties of an existing connection on a media engine. |
MediaControl.PlayResult |
play(java.lang.String sessionId,
java.lang.String prompt1,
java.lang.String connectionId,
java.lang.String conferenceId,
MediaControl.PlayOptions options)
Initiates playback of the specified audio file and/or plays text-to-speech to the specified connection or conference. |
MediaControl.PlayToneResult |
playTone(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
java.lang.Long duration,
java.lang.Long frequency1,
java.lang.Integer amplitude1,
java.lang.Long frequency2,
java.lang.Integer amplitude2,
MediaControl.PlayToneOptions options)
PlayTone generates a tone to a connection or conference. |
MediaControl.RecordResult |
record(java.lang.String sessionId,
java.lang.String filename,
java.lang.Long expires,
MediaControl.RecordOptions options)
Records audio from a connection or conference. |
MediaControl.ReserveConnectionResult |
reserveConnection(java.lang.String sessionId,
MediaControl.ReserveConnectionOptions options)
Provisions a connection on a media engine without establishing the transmit RTP stream. |
MediaControl.SaveDynamicGrammarResult |
saveDynamicGrammar(java.lang.String sessionId,
java.lang.String dynGrammar,
java.lang.String dynGrammarName,
java.lang.Boolean isScriptBound,
MediaControl.SaveDynamicGrammarOptions options)
Saves the string representation of a grammar to file. |
MediaControl.SendDigitsResult |
sendDigits(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String digits,
MediaControl.SendDigitsOptions options)
SendDigits inserts DTMF digits into the digit buffer for a given connection. |
MediaControl.SetConfereeAttributeResult |
setConfereeAttribute(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
java.lang.Boolean mute,
java.lang.Boolean tariffTone,
MediaControl.SetConfereeAttributeOptions options)
Changes one or more properties of a connection in a conference. |
MediaControl.StopMediaOperationResult |
stopMediaOperation(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String operationId,
MediaControl.StopMediaOperationOptions options)
StopMediaOperation has two distinct modes. |
MediaControl.VoiceRecognitionResult |
voiceRecognition(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String grammar1,
java.lang.String prompt1,
java.lang.Boolean voiceBargeIn,
java.lang.Boolean cancelOnDigit,
MediaControl.VoiceRecognitionOptions options)
Applies 1 or more speech grammars with a Nuance OSR server to the specified connection in order to detect phrases being spoken in real-time. |
| Method Detail |
|---|
MediaControl.ReserveConnectionResult reserveConnection(java.lang.String sessionId,
MediaControl.ReserveConnectionOptions options)
sessionId - The session Id for this method calloptions - An object holding all the optional parameters
MediaControl.CreateConnectionResult createConnection(java.lang.String sessionId,
java.lang.String mediaTxIP,
java.lang.Long mediaTxPort,
java.lang.String connectionId,
MediaControl.CreateConnectionOptions options)
sessionId - The session Id for this method callmediaTxIP - The IP address that the Tx RTP stream will transmit audio
to.mediaTxPort - The port that the Tx RTP stream will transmit audio to.connectionId - A ConnectionId returned by a previous ReserveConnection
action. If no ConnectionId is specified, then an
entirely new connection is created.options - An object holding all the optional parameters
MediaControl.ModifyConnectionResult modifyConnection(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String mediaTxIP,
java.lang.Long mediaTxPort,
MediaControl.ModifyConnectionOptions options)
sessionId - The session Id for this method callconnectionId - A ConnectionId returned by a previously executed
CreateConnection action.mediaTxIP - The IP address that the Tx RTP stream will transmit audio
to.mediaTxPort - The port that the Tx RTP stream will transmit audio to.options - An object holding all the optional parameters
MediaControl.DeleteConnectionResult deleteConnection(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
MediaControl.DeleteConnectionOptions options)
sessionId - The session Id for this method callconnectionId - The connection to perform the DeleteConnection on.conferenceId - The conference to perform the DeleteConnection on.options - An object holding all the optional parameters
MediaControl.SetConfereeAttributeResult setConfereeAttribute(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
java.lang.Boolean mute,
java.lang.Boolean tariffTone,
MediaControl.SetConfereeAttributeOptions options)
sessionId - The session Id for this method callconnectionId - The connection to change conference attributes on.conferenceId - The conference that contains the ConnectionId
specified.mute - Indicates whether this connection should be muted.tariffTone - Indicates whether this connection should hear a periodic
tone while in a true, on non-hairpinned, conference.options - An object holding all the optional parameters
MediaControl.PlayResult play(java.lang.String sessionId,
java.lang.String prompt1,
java.lang.String connectionId,
java.lang.String conferenceId,
MediaControl.PlayOptions options)
sessionId - The session Id for this method callprompt1 - A prompt field can be either an audio file name or a
free-formed string which will be converted to
text-to-speech. It can be specified as a null () or string[]
of prompts.connectionId - The connection to perform the Play on. If specified,
ConferenceId must not be specified.conferenceId - The conference to perform the Play on. If specified,
ConnectionId must not be specified.options - An object holding all the optional parameters
MediaControl.PlayResult beginPlay(java.lang.String sessionId,
java.lang.String prompt1,
java.lang.String connectionId,
java.lang.String conferenceId,
MediaControl.PlayOptions options,
java.lang.Object state)
MediaControl.AdjustPlayResult adjustPlay(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Integer volume,
java.lang.Integer speed,
MediaControl.AdjustmentType adjustmentType,
java.lang.Long toggleType,
MediaControl.AdjustPlayOptions options)
sessionId - The session Id for this method callconnectionId - The connection to perform the AdjustPlay on.volume - If AdjustmentType is absolute, then one can set Volume to a
value between -10 and 10. However, if AdjustmentType is
relative, then Volume could be between -20 and 20, depending
on the value of Volume before the AdjustPlay is executed.
Finally, if AdjustmentType is toggle, then the Volume action
parameter is ignored.speed - If AdjustmentType is absolute, then one can set Speed to a
value between -10 and 10. However, if AdjustmentType is
relative, then Speed could be between -20 and 20, depending on
the value of Speed before the AdjustPlay is executed. Finally,
if AdjustmentType is toggle, then the Speed action parameter
is ignored.adjustmentType - Indicates how the Volume and Speed values are
interpreted. Valid values are absolute, relative, and
toggle.toggleType - If AdjustmentType is toggle, this value indicates how
Volume should be toggled; however, Speed is not affected
in any way by the use of toggle. A value of 1 toggles
Volume between the origin and the last modification to
Volume. A value of 2 resets volume to the origin. A value
of 3 sets Volume to the last modification to Volume. A
value of 4 indicates to put Volume to the origin and also
resets the last modification to origin (essentially
clearing the history of modifications).options - An object holding all the optional parameters
MediaControl.VoiceRecognitionResult voiceRecognition(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String grammar1,
java.lang.String prompt1,
java.lang.Boolean voiceBargeIn,
java.lang.Boolean cancelOnDigit,
MediaControl.VoiceRecognitionOptions options)
sessionId - The session Id for this method callconnectionId - The connection to perform the VoiceRecognition on.grammar1 - A null () or string[]. These files define the grammar rules
to use when interpreting the voice input on the connection.
For each specified grammar file, there are three potential
formats:
Static - If you specify just the grammar file name in the
Cisco Unified Application Designer, such as
grammar1.grxml, and if that grammar file name
exists as a Voice Recognition resource in the
project, then the VoiceRecognition action will
internally convert that grammar1.grxml file to a
URI that references the location on the
Application Server at which the grammar file can
be accessed with HTTP. That URI is ultimately
sent to Nuance OSR, which will in turn fetch
that grammar file.
Dynamic - Dynamic grammar files are grammar files created
by the script, while the script is running.
Typically one would create the file using the
SaveDynamicGrammar, which will return the HTTP
URI for that file. The variable containing this
HTTP URI would then be supplied as the grammar
file name.
Builtin - Some grammars are provisioned with Nuance OSR,
and it is also possible to provision grammars
on Nuance OSR outside of the context of a Cisco
Unified Application Environment application. To
specify either type of 'builtin' grammar, just
specify the grammar file name, such as
grammar1.grxml. However, there should be no
grammar file associated with your project of
the same name.prompt1 - A prompt field can be either an audio file name or a
free-formed string which will be converted to
text-to-speech. It can be specified as a null () or string[]
of prompts.voiceBargeIn - Indicates whether the occurrence of voice on the
connection should abort any specified prompts.cancelOnDigit - Indicates to stop the action successfully when a digit
is entered, returning the VoiceRecognition_Complete
event.options - An object holding all the optional parameters
MediaControl.VoiceRecognitionResult beginVoiceRecognition(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String grammar1,
java.lang.String prompt1,
java.lang.Boolean voiceBargeIn,
java.lang.Boolean cancelOnDigit,
MediaControl.VoiceRecognitionOptions options,
java.lang.Object state)
MediaControl.ManageGrammarResult manageGrammar(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String grammar1,
MediaControl.Action action,
MediaControl.ManageGrammarOptions options)
sessionId - The session Id for this method callconnectionId - The connection to perform the ManageGrammar on.grammar1 - A null () or string[]. These files define the grammar rules
to use when performing the management operation indicated
by the Action parameter.. For each specified grammar file,
there are three potential formats:
Static - If you specify just the grammar file name in the
Cisco Unified Application Designer, such as
grammar1.grxml, and if that grammar file name
exists as a Voice Recognition resource in the
project, then the ManageGrammar action will
internally convert that grammar1.grxml file to a
URI that references the location on the
Application Server at which the grammar file can
be accessed with HTTP. That URI is ultimately
sent to Nuance OSR, which will in turn fetch
that grammar file.
Dynamic - Dynamic grammar files are grammar files created
by the script, while the script is running.
Typically one would create the file using the
SaveDynamicGrammar, which will return the HTTP
URI for that file. The variable containing this
HTTP URI would then be supplied as the grammar
file name.
Builtin - Some grammars are provisioned with Nuance OSR,
and it is also possible to provision grammars
on Nuance OSR outside of the context of a Cisco
Unified Application Environment application. To
specify either type of 'builtin' grammar, just
specify the grammar file name, such as
grammar1.grxml. However, there should be no
grammar file associated with your project of
the same name.action - Load - In general, Load would be used in the case that a
large grammar should be guaranteed to be loaded
before the actual VoiceRecognition operation begins,
so that the user experiences minimal delay.
Activate - This option should not be used.
Deactivate - This option should not be used.
Unload - In general, Unload would be used when one knows
that a large grammar file no longer has use, and
wishes to free up the associated resources on the
Nuance OSR server.
Default - This option should not be used.options - An object holding all the optional parameters
MediaControl.ManageGrammarResult beginManageGrammar(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String grammar1,
MediaControl.Action action,
MediaControl.ManageGrammarOptions options,
java.lang.Object state)
MediaControl.SaveDynamicGrammarResult saveDynamicGrammar(java.lang.String sessionId,
java.lang.String dynGrammar,
java.lang.String dynGrammarName,
java.lang.Boolean isScriptBound,
MediaControl.SaveDynamicGrammarOptions options)
sessionId - The session Id for this method calldynGrammar - The content of the grammar file.dynGrammarName - The name of the grammar file. If not specified, the
file will be automatically named
HOUR_MINUTE_SECOND.grxml.isScriptBound - Determines whether the file is script-bound or
application-bound.options - An object holding all the optional parameters
MediaControl.RecordResult record(java.lang.String sessionId,
java.lang.String filename,
java.lang.Long expires,
MediaControl.RecordOptions options)
sessionId - The session Id for this method callfilename - The name of the audo file to create. If not specified, the
media engine will generate a random file name, which is
obtainable through either the result data FileName or in
the Record_Complete event via the Filename event parameter.expires - The number of days until the file is automatically deleted
from the server. A value of 0 will indicate that the file
should never be deleted by the media engine.options - An object holding all the optional parameters
MediaControl.RecordResult beginRecord(java.lang.String sessionId,
java.lang.String filename,
java.lang.Long expires,
MediaControl.RecordOptions options,
java.lang.Object state)
MediaControl.StopMediaOperationResult stopMediaOperation(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String operationId,
MediaControl.StopMediaOperationOptions options)
sessionId - The session Id for this method callconnectionId - Indicates the connection to stop currently executing
media operation(s) on. If one wishes to stop a media
operation invoked on a conference, then the
ConnectionId to specify in this action parameter is
returned as a result data parameter by that media
operation.operationId - Indicates which specific operation on a connection
should be cancelled, if specified. If OperationId is
specified, then ConnectionId must be specified. This
value can be obtained as a result data parameter in the
Record, Play, VoiceRecognition, DetectSilence,
DetectNonSilence, or GatherDigits action, and so
therefore is used to cancel that operation on a
connection if that value is specified here.options - An object holding all the optional parameters
MediaControl.DetectSilenceResult detectSilence(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Long silenceTime,
MediaControl.DetectSilenceOptions options)
sessionId - The session Id for this method callconnectionId - Indicates the connection to detect silence on.silenceTime - The amount of continuous silence to observe (in
milliseconds) before firing the DetectSilence_Complete
event.options - An object holding all the optional parameters
MediaControl.DetectSilenceResult beginDetectSilence(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Long silenceTime,
MediaControl.DetectSilenceOptions options,
java.lang.Object state)
MediaControl.DetectNonSilenceResult detectNonSilence(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Long nonSilenceTime,
MediaControl.DetectNonSilenceOptions options)
sessionId - The session Id for this method callconnectionId - Indicates the connection to detect silence on.nonSilenceTime - The amount of continuous non-silence to observe (in
milliseconds) before firing the
DetectNonSilence_Complete event.options - An object holding all the optional parameters
MediaControl.DetectNonSilenceResult beginDetectNonSilence(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Long nonSilenceTime,
MediaControl.DetectNonSilenceOptions options,
java.lang.Object state)
MediaControl.CreateConferenceResult createConference(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.Boolean soundToneOnJoin,
MediaControl.CreateConferenceOptions options)
sessionId - The session Id for this method callconnectionId - Indicates the connection to add to the new conference
as the 1st participant on. If MmsId is specified, this
ConnectionId must reside on the same media engine.soundToneOnJoin - Indicates whether a tone is played when each
participant joins the conference.options - An object holding all the optional parameters
MediaControl.JoinConferenceResult joinConference(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
MediaControl.JoinConferenceOptions options)
sessionId - The session Id for this method callconnectionId - Indicates the connection to add to the existing
conference as a new participant. If MmsId is specified,
this ConnectionId must reside on the same media engine.conferenceId - The conference to add the connection to.options - An object holding all the optional parameters
MediaControl.LeaveConferenceResult leaveConference(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
MediaControl.LeaveConferenceOptions options)
sessionId - The session Id for this method callconnectionId - Indicates the connection to remove from the conference.conferenceId - The conference to remove the connection from.options - An object holding all the optional parameters
MediaControl.GatherDigitsResult gatherDigits(java.lang.String sessionId,
java.lang.String connectionId,
MediaControl.GatherDigitsOptions options)
sessionId - The session Id for this method callconnectionId - Indicates the connection to GatherDigits on.options - An object holding all the optional parameters
MediaControl.GatherDigitsResult beginGatherDigits(java.lang.String sessionId,
java.lang.String connectionId,
MediaControl.GatherDigitsOptions options,
java.lang.Object state)
MediaControl.SendDigitsResult sendDigits(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String digits,
MediaControl.SendDigitsOptions options)
sessionId - The session Id for this method callconnectionId - Indicates the connection to SendDigits to.digits - The digit(s) to send on the connection.options - An object holding all the optional parameters
MediaControl.PlayToneResult playTone(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
java.lang.Long duration,
java.lang.Long frequency1,
java.lang.Integer amplitude1,
java.lang.Long frequency2,
java.lang.Integer amplitude2,
MediaControl.PlayToneOptions options)
sessionId - The session Id for this method callconnectionId - The connection to perform the PlayTone on. If
specified, ConferenceId must not be specified.conferenceId - The conference to perform the PlayTone on. If
specified, ConnectionId must not be specified.duration - The length of time to play tone (in milliseconds).frequency1 - The frequency to be played (in Hz). The valid range is
from 200 to 3000.amplitude1 - The amplitude of the Frequency1 (in dB). The valid Range
is from -40 to 0.frequency2 - The frequency to combine with the first frequency (in
Hz). The valid range is from 200 to 3000.amplitude2 - The amplitude of the Frequency2 (in dB). The valid Range
is from -40 to 0.options - An object holding all the optional parameters
MediaControl.PlayToneResult beginPlayTone(java.lang.String sessionId,
java.lang.String connectionId,
java.lang.String conferenceId,
java.lang.Long duration,
java.lang.Long frequency1,
java.lang.Integer amplitude1,
java.lang.Long frequency2,
java.lang.Integer amplitude2,
MediaControl.PlayToneOptions options,
java.lang.Object state)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||