类听录::ConversationTranscriber

class Transcription::ConversationTranscriber
  : public Recognizer

ConversationTranscribers 的类。

成员

SessionStarted

语法:public EventSignal< const SessionEventArgs & > SessionStarted;

指示识别会话(作)开始的事件的信号。

SessionStopped

语法:public EventSignal< const SessionEventArgs & > SessionStopped;

指示识别会话结束(作)的事件信号。

SpeechStartDetected

语法:public EventSignal< const RecognitionEventArgs & > SpeechStartDetected;

指示语音开始的事件的信号。

SpeechEndDetected

语法:public EventSignal< const RecognitionEventArgs & > SpeechEndDetected;

指示语音结束的事件的信号。

转录

语法:public EventSignal< const ConversationTranscriptionEventArgs & > Transcribing;

包含中间识别结果的事件的信号。

转录

语法:public EventSignal< const ConversationTranscriptionEventArgs & > Transcribed;

包含最终识别结果的事件的信号。 (指示成功识别尝试)。

取消

语法:public EventSignal< const ConversationTranscriptionCanceledEventArgs & > 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 音频配置。

退货

智能指针包装对话转加密指针。