다음을 통해 공유


ConversationTranscriber Class

Definition

Transcribes conversations from speech into text.

public sealed class ConversationTranscriber : Microsoft.CognitiveServices.Speech.Recognizer
type ConversationTranscriber = class
    inherit Recognizer
Public NotInheritable Class ConversationTranscriber
Inherits Recognizer
Inheritance
ConversationTranscriber

Remarks

See also: Get started with real-time Conversation Transcription

Constructors

ConversationTranscriber(SpeechConfig, AudioConfig)

Creates a new instance of ConversationTranscriber.

ConversationTranscriber(SpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

Creates a new instance of ConversationTranscriber.

ConversationTranscriber(SpeechConfig, AutoDetectSourceLanguageConfig)

Creates a new instance of ConversationTranscriber that determines the source language from a list of options.

ConversationTranscriber(SpeechConfig, SourceLanguageConfig, AudioConfig)

Creates a new instance of ConversationTranscriber.

ConversationTranscriber(SpeechConfig, SourceLanguageConfig)

Creates a new instance of ConversationTranscriber.

ConversationTranscriber(SpeechConfig)

Creates a new instance of Conversation Transcriber.

Fields

disposed

disposed is a flag used to indicate if object is disposed.

(Inherited from Recognizer)
gch

GC handle for callbacks for context.

(Inherited from Recognizer)
isDisposing

Indicates whether the object is currently being disposed.

(Inherited from Recognizer)
pointerHandle

Internal for logging.

(Inherited from Recognizer)
recognizerLock

recognizerLock is used to synchronize access to objects member variables from multiple threads

(Inherited from Recognizer)

Properties

AuthorizationToken

Gets or sets authorization token used to communicate with the service. Note: The caller needs to ensure that the authorization token is valid. Before the authorization token expires, the caller needs to refresh it by calling this setter with a new valid token. Otherwise, the recognizer will encounter errors during recognition.

OutputFormat

Gets the output format setting.

Properties

Gets the collection of properties and their values defined for this ConversationTranscriber.

SpeechRecognitionLanguage

Gets the language name that is used for recognition.

Methods

Dispose()

Dispose of associated resources.

(Inherited from Recognizer)
Dispose(Boolean)

This method performs cleanup of resources. The Boolean parameter disposing indicates whether the method is called from Dispose() (if disposing is true) or from the finalizer (if disposing is false). Derived classes should override this method to dispose resource if needed.

(Inherited from Recognizer)
StartTranscribingAsync()

Starts conversation trancsribing on a continuous audio stream, until StopTranscribingAsync() is called. You must subscribe to events to receive recognition results.

StopTranscribingAsync()

Stops conversation transcribing.

Events

Canceled

The event Canceled signals that the transcription was canceled.

SessionStarted

Defines event handler for session started event.

(Inherited from Recognizer)
SessionStopped

Defines event handler for session stopped event.

(Inherited from Recognizer)
SpeechEndDetected

Defines event handler for speech end detected event.

(Inherited from Recognizer)
SpeechStartDetected

Defines event handler for speech start detected event.

(Inherited from Recognizer)
Transcribed

The event Transcribed signals that a final transcription result is received.

Transcribing

The event Transcribing signals that an intermediate transcription result is received.

Applies to