类听录::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 );
从语音配置创建会话 transcriber。
参数
speechconfig
语音配置。
返回
一个智能指针,用于包装会话的 transcriber 指针。
FromConfig
语法: public inline static std::shared_ptr< ConversationTranscriber > FromConfig ( std::shared_ptr< SpeechConfig > speechconfig , std::shared_ptr< Audio::AudioConfig > audioInput );
从语音配置和音频配置创建会话转译。
参数
speechconfig
语音配置。audioInput
音频配置。
返回
一个智能指针,用于包装会话的 transcriber 指针。
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
音频配置。
返回
一个智能指针,用于包装会话的 transcriber 指针。
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
音频配置。
返回
智能指针包装的会话转译指针。