類別轉譯::ConversationTranscriber

class Transcription::ConversationTranscriber
  : public Recognizer

ConversationTranscribers 的類別。

成員

SessionStarted

語法: public EventSignal< constSessionEventArgs & > SessionStarted;

指出辨識會話開始 (作業) 的事件訊號。

SessionStopped

語法: public EventSignal< constSessionEventArgs & > SessionStopped;

表示辨識會話結束 (作業) 的事件訊號。

SpeechStartDetected

語法: public EventSignal< constRecognitionEventArgs & > SpeechStartDetected;

指出語音開始的事件訊號。

SpeechEndDetected

語法: public EventSignal< constRecognitionEventArgs & > SpeechEndDetected;

表示語音結束的事件訊號。

轉錄

語法: public EventSignal< constConversationTranscriptionEventArgs & > Transcribing;

包含中繼辨識結果的事件訊號。

轉錄

語法: public EventSignal< constConversationTranscriptionEventArgs & > Transcribed;

包含最終辨識結果的事件訊號。 (指出成功辨識嘗試) 。

已取消

語法: public EventSignal< constConversationTranscriptionCanceledEventArgs & > Canceled;

包含已取消辨識結果的事件訊號 (指出因結果或直接取消要求而取消的辨識嘗試,或者傳輸或通訊協定失敗) 。

屬性

語法: public PropertyCollection & Properties;

針對這個 ConversationTranscriber 定義的屬性及其值集合。

StartTranscribingAsync

語法: public inline std::future< void > StartTranscribingAsync ( );

以異步方式啟動交談轉譯。

傳回

空的未來。

StopTranscribingAsync

語法: public inline std::future< void > StopTranscribingAsync ( );

以異步方式停止交談轉譯。

傳回

空的未來。

ConversationTranscriber

語法: public inline explicit ConversationTranscriber ( SPXRECOHANDLE hreco );

內部建構函式。 使用提供的句柄建立新的實例。

參數

  • hreco 辨識器句柄。

~ConversationTranscriber

語法: public inline ~ConversationTranscriber ( );

解構函式。

SetAuthorizationToken

語法: public inline void SetAuthorizationToken ( const std::string & token );

設定將用於連接伺服器的授權令牌。

參數

  • token 授權令牌。

GetAuthorizationToken

語法: public inline std::string GetAuthorizationToken ( );

取得授權令牌。

傳回

授權權杖

FromConfig

語法: public inline static std::shared_ptr< ConversationTranscriber > FromConfig ( std::shared_ptr< SpeechConfig > speechconfig , std::nullptr_t );

從語音設定建立交談轉譯。

參數

  • speechconfig 語音設定。

傳回

智慧型指標包裝的交談轉譯指標。

FromConfig

語法: public inline static std::shared_ptr< ConversationTranscriber > FromConfig ( std::shared_ptr< SpeechConfig > speechconfig , std::shared_ptr< Audio::AudioConfig > audioInput );

從語音設定和音訊組態建立交談轉譯。

參數

  • speechconfig 語音設定。

  • audioInput 音訊組態。

傳回

智慧型指標包裝的交談轉譯指標。

FromConfig

語法: public inline static std::shared_ptr< ConversationTranscriber > FromConfig ( std::shared_ptr< SpeechConfig > speechconfig , std::shared_ptr< AutoDetectSourceLanguageConfig > autoDetectSourceLangConfig , std::shared_ptr< Audio::AudioConfig > audioInput );

從語音設定、自動偵測來源語言設定和音訊設定建立交談轉譯。

參數

  • speechconfig 語音設定。

  • autoDetectSourceLangConfig 自動偵測來源語言設定。

  • audioInput 音訊組態。

傳回

智慧型指標包裝的交談 trasncriber 指標。

FromConfig

語法: public inline static std::shared_ptr< ConversationTranscriber > FromConfig ( std::shared_ptr< SpeechConfig > speechconfig , std::shared_ptr< SourceLanguageConfig > sourceLanguageConfig , std::shared_ptr< Audio::AudioConfig > audioInput );

從語音設定、來源語言設定和音訊組態建立交談轉譯。

參數

  • speechconfig 語音設定。

  • sourceLanguageConfig 來源語言設定。

  • audioInput 音訊組態。

傳回

智慧型指標包裝的交談轉譯指標。

FromConfig

語法: public inline static std::shared_ptr< ConversationTranscriber > FromConfig ( std::shared_ptr< SpeechConfig > speechconfig , const std::string & sourceLanguage , std::shared_ptr< Audio::AudioConfig > audioInput );

從語音設定、來源語言和音訊組態建立交談轉譯。

參數

  • speechconfig 語音設定。

  • sourceLanguage 來源語言。

  • audioInput 音訊組態。

傳回

智慧型指標包裝的交談轉譯指標。