次の方法で共有


class Transcription::ConversationTranslator

class Transcription::ConversationTranslator
  : public std::enable_shared_from_this< ConversationTranslator >

参加者が自分のデバイスを使用して他のユーザーの認識と VM を自分の言語で表示できる、接続されたエクスペリエンスを可能にする会話翻訳ツール。 参加者は、他のユーザーと話したり、VM を送信したりすることもできます。 1.9.0 で追加されました。

メンバー

SessionStarted

構文: public EventSignal< const SessionEventArgs & > SessionStarted;

文字起こしセッションの開始 (操作) を示すイベントのシグナル。

SessionStopped

構文: public EventSignal< const SessionEventArgs & > SessionStopped;

文字起こしセッション (操作) の終了を示すイベントのシグナル。

キャンセル

構文: public EventSignal< const ConversationTranslationCanceledEventArgs & > Canceled;

キャンセルされた認識結果を含むイベントのシグナル (結果として取り消された認識の試行、または直接のキャンセル要求、またはトランスポートまたはプロトコルの失敗を示します)。

ParticipantsChanged

構文: public EventSignal< const ConversationParticipantsChangedEventArgs & > ParticipantsChanged;

会話の参加者が変更されたことを示すイベントのシグナル。

ConversationExpiration

構文: public EventSignal< const ConversationExpirationEventArgs & > ConversationExpiration;

会話の有効期限が切れるまでの残り時間を示すイベントのシグナル。

転写

構文: public EventSignal< const ConversationTranslationEventArgs & > Transcribing;

中間翻訳された会話の文字起こし結果を含むイベントのシグナル。

転写

構文: public EventSignal< const ConversationTranslationEventArgs & > Transcribed;

翻訳された最終的な会話の文字起こし結果を含むイベントのシグナル。 (認識の試行が成功したことを示します)。

TextMessageReceived

構文: public EventSignal< const ConversationTranslationEventArgs & > TextMessageReceived;

メッセージ交換からテキスト メッセージを受信したときに発生します。

特性

構文: public PropertyCollection & Properties;

この ConversationTranslator に対して定義されているプロパティとその値のコレクション。

~ConversationTranslator

構文: public inline virtual ~ConversationTranslator ( );

デストラクターです。

JoinConversationAsync

構文: public inline std::future< void > JoinConversationAsync ( std::shared_ptr< Conversation > conversation , const std::string & nickname );

会話に参加します。 これを呼び出すと、イベントの受信が開始されます。

パラメーター

  • conversation 使用する会話インスタンス。 このインスタンスは、ホストが会話を管理するために使用できます。

  • nickname 会話の現在の参加者に使用する表示名。

返品ポリシー

非同期操作。

JoinConversationAsync

構文: public inline std::future< void > JoinConversationAsync ( const std::string & conversationId , const std::string & nickname , const std::string & language );

会話に参加します。 これを呼び出すと、イベントの受信が開始されます。

パラメーター

  • conversationId 参加する会話の識別子。

  • nickname 会話の現在の参加者の表示名。

  • language 参加者が使用している言語。

返品ポリシー

非同期操作。

StartTranscribingAsync

構文: public inline std::future< void > StartTranscribingAsync ( );

音声認識のために会話サービスへのオーディオの送信を開始します。

返品ポリシー

非同期操作。

StopTranscribingAsync

構文: public inline std::future< void > StopTranscribingAsync ( );

会話サービスへのオーディオの送信を停止します。

返品ポリシー

非同期操作。

SendTextMessageAsync

構文: public inline std::future< void > SendTextMessageAsync ( const std::string & message );

会話のすべての参加者にインスタント メッセージを送信します。 このインスタント メッセージは、各参加者のテキスト言語に翻訳されます。

パラメーター

  • message 送信するメッセージ。

返品ポリシー

非同期操作。

LeaveConversationAsync

構文: public inline std::future< void > LeaveConversationAsync ( );

現在の会話を残します。 これが呼び出されると、イベントは受信されなくなります。

返品ポリシー

非同期操作。

SetAuthorizationToken

構文: public inline void SetAuthorizationToken ( const std::string & authToken , const std::string & region );

サーバーへの接続に使用する Cognitive Speech 承認トークンを設定します。

パラメーター

  • authToken 承認トークン。

  • region このトークンの Azure リージョン。

GetAuthorizationToken

構文: public inline std::string GetAuthorizationToken ( );

承認トークンを取得します。

返品ポリシー

承認トークン

GetParticipantId

構文: public inline std::string GetParticipantId ( );

参加者識別子を取得します。

返品ポリシー

参加者 ID

FromConfig

構文: public inline static std::shared_ptr< ConversationTranslator > FromConfig ( std::shared_ptr< Audio::AudioConfig > audioConfig );

オーディオ構成から会話トランスレーターを作成します。

パラメーター

  • オーディオ構成を audioConfig します。

返品ポリシー

会話トランスレーター インスタンスへのスマート ポインター。

ConversationTranslator

構文: protected inline explicit ConversationTranslator ( SPXCONVERSATIONTRANSLATORHANDLE handle );

OnSessionEventChanged

構文: protected inline void OnSessionEventChanged ( const EventSignal< const SessionEventArgs & > & evt );

OnCanceledEventChanged

構文: protected inline void OnCanceledEventChanged ( const EventSignal< const ConversationTranslationCanceledEventArgs & > & );

OnParticipantsEventChanged

構文: protected inline void OnParticipantsEventChanged ( const EventSignal< const ConversationParticipantsChangedEventArgs & > & );

OnExpirationEventChanged

構文: protected inline void OnExpirationEventChanged ( const EventSignal< const ConversationExpirationEventArgs & > & );

OnTranscriptionEventChanged

構文: protected inline void OnTranscriptionEventChanged ( const EventSignal< const ConversationTranslationEventArgs & > & evt );

OnTextMessageEventChanged

構文: protected inline void OnTextMessageEventChanged ( const EventSignal< const ConversationTranslationEventArgs & > & );