Share via


クラスの文字起こし::Conversation

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

会話のクラス。 バージョン 1.8.0 で追加されました。

メンバー

プロパティ

構文: public PropertyCollection & Properties;

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

会話

構文: public inline explicit Conversation ( SPXCONVERSATIONHANDLE hconversation );

内部コンストラクター。 指定されたハンドルを使用して新しいインスタンスを作成します。

パラメーター

  • hconversation 認識エンジン ハンドル。

~会話

構文: public inline ~Conversation ( );

デストラクターです。

演算子 SPXCONVERSATIONHANDLE

構文: public inline explicit operator SPXCONVERSATIONHANDLE ( ) const;

基になるハンドル値を取得するために使用される内部演算子。

戻り値

ハンドル。

GetConversationId

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

会話 ID を取得します。

戻り値

会話 ID。

AddParticipantAsync

構文: public inline std::future< std::shared_ptr< Participant > > AddParticipantAsync ( const std::string & userId );

ユーザーの ID を使用して会話に参加者を追加します。

注: 返却された参加者は、削除に使用できます。 クライアントが参加者の属性を変更した場合、変更された属性は、参加者が再び追加されたときにのみサービスに渡されます。

パラメーター

  • userId ユーザー ID。

戻り値

参加者の共有スマート ポインター。

AddParticipantAsync

構文: public inline std::future< std::shared_ptr< User > > AddParticipantAsync ( const std::shared_ptr< User > & user );

User オブジェクトを使用して会話に参加者を追加します。

パラメーター

  • user User オブジェクトへの共有スマート ポインター。

戻り値

User オブジェクトに渡された 。

AddParticipantAsync

構文: public inline std::future< std::shared_ptr< Participant > > AddParticipantAsync ( const std::shared_ptr< Participant > & participant );

参加者オブジェクトを使用して会話に参加者を追加します。

パラメーター

  • participant 参加者オブジェクトへの共有スマート ポインター。

戻り値

渡された参加者オブジェクト。

RemoveParticipantAsync

構文: public inline std::future< void > RemoveParticipantAsync ( const std::shared_ptr< Participant > & participant );

参加者オブジェクトを使用して会話から参加者を削除します。

パラメーター

  • participant 参加者オブジェクトの共有スマート ポインター。

戻り値

空の未来。

RemoveParticipantAsync

構文: public inline std::future< void > RemoveParticipantAsync ( const std::shared_ptr< User > & user );

User オブジェクトを使用して、会話から参加者を削除します。

パラメーター

  • user ユーザーのスマート ポインター。

戻り値

空の未来。

RemoveParticipantAsync

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

ユーザー ID 文字列を使用して、会話から参加者を削除します。

パラメーター

  • userId ユーザー ID。

戻り値

空の未来。

EndConversationAsync

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

現在の会話を終了します。

戻り値

空の未来。

SetAuthorizationToken

構文: public inline void SetAuthorizationToken ( const std::string & token );

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

パラメーター

  • token 承認トークン。

GetAuthorizationToken

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

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

戻り値

承認トークン

StartConversationAsync

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

メッセージ交換を開始する。

戻り値

空の未来。

DeleteConversationAsync

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

会話を削除します。 この呼び出しの後、まだコンフェデレーションの一部である参加者はすべて取り出されます。

戻り値

空の未来。

LockConversationAsync

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

会話をロックします。 この後、新しい参加者は参加できません。

戻り値

空の未来。

UnlockConversationAsync

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

会話のロックを解除します。

戻り値

空の未来。

MuteAllParticipantsAsync

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

ホストを除くすべての参加者をミュートします。 これにより、他のユーザーが文字起こしを生成したり、テキスト メッセージを送信したりできなくなります。

戻り値

空の未来。

UnmuteAllParticipantsAsync

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

他の参加者が文字起こしを生成したり、テキスト メッセージを送信したりできます。

戻り値

空の未来。

MuteParticipantAsync

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

特定の参加者をミュートにします。 これにより、新しい文字起こしを生成したり、テキスト メッセージを送信したりできなくなります。

パラメーター

  • participantId 参加者の識別子。

戻り値

空の未来。

UnmuteParticipantAsync

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

特定の参加者のミュートを解除します。

パラメーター

  • participantId 参加者の識別子。

戻り値

空の未来。

CreateConversationAsync

構文: public inline static std::future< std::shared_ptr< Conversation > > CreateConversationAsync ( std::shared_ptr< SpeechConfig > speechConfig , const std::string & conversationId );

音声構成とオプションの会話 ID を使用して会話を作成します。

パラメーター

  • speechConfig 音声構成オブジェクトの共有スマート ポインター。

  • conversationId 会話 ID。

戻り値

作成された会話オブジェクトの共有スマート ポインター。