CallMedia class
CallMedia-klasse vertegenwoordigt aanroepmedia-API's.
Constructors
| Call |
Methoden
Constructordetails
CallMedia(string, string, TokenCredential | KeyCredential, CallAutomationApiClientOptionalParams)
new CallMedia(callConnectionId: string, endpoint: string, credential: TokenCredential | KeyCredential, options?: CallAutomationApiClientOptionalParams)
Parameters
- callConnectionId
-
string
- endpoint
-
string
- credential
- options
-
CallAutomationApiClientOptionalParams
Methodedetails
cancelAllOperations()
Hiermee worden alle mediabewerkingen in de wachtrij geannuleerd.
function cancelAllOperations(): Promise<void>
Retouren
Promise<void>
hold(CommunicationIdentifier, HoldOptions)
Houd de deelnemer in de wacht terwijl u audio afspeelt.
function hold(targetParticipant: CommunicationIdentifier, options?: HoldOptions): Promise<void>
Parameters
- targetParticipant
- CommunicationIdentifier
De doelen om mee te spelen.
- options
- HoldOptions
Aanvullende kenmerken voor deelnemers aan bewaring.
Retouren
Promise<void>
play((FileSource | TextSource | SsmlSource)[], CommunicationIdentifier[], PlayOptions)
Audio afspelen naar een specifieke deelnemer.
function play(playSources: (FileSource | TextSource | SsmlSource)[], playTo: CommunicationIdentifier[], options?: PlayOptions): Promise<void>
Parameters
- playSources
-
(FileSource | TextSource | SsmlSource)[]
Een PlaySource die de bronnen vertegenwoordigt die moeten worden afgespeeld. Momenteel wordt slechts één play-bron per aanvraag ondersteund.
- playTo
De doelen om mee te spelen.
- options
- PlayOptions
Aanvullende kenmerken voor afspelen.
Retouren
Promise<void>
playToAll((FileSource | TextSource | SsmlSource)[], PlayToAllOptions)
Speel af op alle deelnemers.
function playToAll(playSources: (FileSource | TextSource | SsmlSource)[], options?: PlayToAllOptions): Promise<void>
Parameters
- playSources
-
(FileSource | TextSource | SsmlSource)[]
Een PlaySource die de bronnen vertegenwoordigt die moeten worden afgespeeld. Momenteel wordt slechts één play-bron per aanvraag ondersteund.
- options
- PlayToAllOptions
Aanvullende kenmerken voor afspelen.
Retouren
Promise<void>
sendDtmfTones(string[] | DtmfTone[], CommunicationIdentifier, SendDtmfTonesOptions)
Dtmf-tonen verzenden.
function sendDtmfTones(tones: string[] | DtmfTone[], targetParticipant: CommunicationIdentifier, options?: SendDtmfTonesOptions): Promise<SendDtmfTonesResult>
Parameters
- tones
-
string[] | DtmfTone[]
Lijst met tonen die naar de doeldeelnemer moeten worden verzonden.
- targetParticipant
- CommunicationIdentifier
Doeldeelnemer.
- options
- SendDtmfTonesOptions
Aanvullende kenmerken voor het verzenden van Dtmf-tonen.
Retouren
Promise<SendDtmfTonesResult>
startContinuousDtmfRecognition(CommunicationIdentifier, ContinuousDtmfRecognitionOptions)
Start continue Dtmf-herkenning door u te abonneren op tonen.
function startContinuousDtmfRecognition(targetParticipant: CommunicationIdentifier, options?: ContinuousDtmfRecognitionOptions): Promise<void>
Parameters
- targetParticipant
- CommunicationIdentifier
Doeldeelnemer.
- options
- ContinuousDtmfRecognitionOptions
Aanvullende kenmerken voor continue Dtmf-herkenning.
Retouren
Promise<void>
startMediaStreaming(StartMediaStreamingOptions)
Hiermee start u mediastreaming in het gesprek.
function startMediaStreaming(options?: StartMediaStreamingOptions): Promise<void>
Parameters
- options
- StartMediaStreamingOptions
Aanvullende kenmerken voor het starten van mediastreaming.
Retouren
Promise<void>
startRecognizing(CommunicationIdentifier, CallMediaRecognizeDtmfOptions | CallMediaRecognizeChoiceOptions | CallMediaRecognizeSpeechOptions | CallMediaRecognizeSpeechOrDtmfOptions)
Deelnemersinvoer herkennen.
function startRecognizing(targetParticipant: CommunicationIdentifier, options: CallMediaRecognizeDtmfOptions | CallMediaRecognizeChoiceOptions | CallMediaRecognizeSpeechOptions | CallMediaRecognizeSpeechOrDtmfOptions): Promise<void>
Parameters
- targetParticipant
- CommunicationIdentifier
Doeldeelnemer.
- options
-
CallMediaRecognizeDtmfOptions | CallMediaRecognizeChoiceOptions | CallMediaRecognizeSpeechOptions | CallMediaRecognizeSpeechOrDtmfOptions
Verschillende kenmerken voor herkennen.
Retouren
Promise<void>
startRecognizing(CommunicationIdentifier, number, CallMediaRecognizeDtmfOptions)
Waarschuwing
Deze API is nu afgeschaft.
This method signature is deprecated. Please use the new signature with targetParticipant and options params instead, and set maxTonesToCollect in options.
Deelnemersinvoer herkennen.
function startRecognizing(targetParticipant: CommunicationIdentifier, maxTonesToCollect: number, options: CallMediaRecognizeDtmfOptions): Promise<void>
Parameters
- targetParticipant
- CommunicationIdentifier
Doeldeelnemer.
- maxTonesToCollect
-
number
Maximum aantal DTMF-tonen dat moet worden verzameld.
- options
- CallMediaRecognizeDtmfOptions
Verschillende kenmerken voor herkennen.
Retouren
Promise<void>
startTranscription(StartTranscriptionOptions)
Transcriptie starten in de aanroep
function startTranscription(options?: StartTranscriptionOptions): Promise<void>
Parameters
- options
- StartTranscriptionOptions
Aanvullende kenmerken voor het starten van transcriptie.
Retouren
Promise<void>
stopContinuousDtmfRecognition(CommunicationIdentifier, ContinuousDtmfRecognitionOptions)
Stop continue Dtmf-herkenning door u af te melden voor tonen.
function stopContinuousDtmfRecognition(targetParticipant: CommunicationIdentifier, options?: ContinuousDtmfRecognitionOptions): Promise<void>
Parameters
- targetParticipant
- CommunicationIdentifier
Doeldeelnemer.
- options
- ContinuousDtmfRecognitionOptions
Aanvullende kenmerken voor continue Dtmf-herkenning.
Retouren
Promise<void>
stopMediaStreaming(StopMediaStreamingOptions)
Stopt mediastreaming in het gesprek.
function stopMediaStreaming(options?: StopMediaStreamingOptions): Promise<void>
Parameters
- options
- StopMediaStreamingOptions
Aanvullende kenmerken voor het stoppen van mediastreaming.
Retouren
Promise<void>
stopTranscription(StopTranscriptionOptions)
Stopt de transcriptie in de aanroep.
function stopTranscription(options?: StopTranscriptionOptions): Promise<void>
Parameters
- options
- StopTranscriptionOptions
Aanvullende kenmerken voor stoptranscriptie.
Retouren
Promise<void>
unhold(CommunicationIdentifier, UnholdOptions)
Deelnemer uit bewaring verwijderen.
function unhold(targetParticipant: CommunicationIdentifier, options?: UnholdOptions): Promise<void>
Parameters
- targetParticipant
- CommunicationIdentifier
De doelen om mee te spelen.
- options
- UnholdOptions
Aanvullende kenmerken voor de deelnemer niet kunnen zien.
Retouren
Promise<void>
updateTranscription(string, UpdateTranscriptionOptions)
Transcriptietaal bijwerken.
function updateTranscription(locale: string, options?: UpdateTranscriptionOptions): Promise<void>
Parameters
- locale
-
string
Definieert een nieuwe landinstelling voor transcriptie.
- options
- UpdateTranscriptionOptions
Retouren
Promise<void>