class Audio::AudioConfig
オーディオ入力または出力の構成を表します。 オーディオ入力は、マイク、ファイル、または入力ストリームから取得できます。 オーディオ出力には、スピーカー、WAV 形式のオーディオ ファイル出力、または出力ストリームを指定できます。
メンバー
演算子 SPXAUDIOCONFIGHANDLE
構文: public inline explicit operator SPXAUDIOCONFIGHANDLE ( ) const;
基になるハンドル値を取得するために使用される内部演算子。
返品ポリシー
ハンドル。
プロパティを設定
構文: public inline void SetProperty ( const std::string & name , const std::string & value );
プロパティ値を名前で設定します。
パラメーター
name
プロパティ名。value
プロパティ値です。
プロパティを設定
構文: public inline void SetProperty ( PropertyId id , const std::string & value );
ID でプロパティ値を設定します。
パラメーター
id
プロパティ ID。value
プロパティ値です。
GetProperty
構文: public inline std::string GetProperty ( const std::string & name ) const;
名前でプロパティ値を取得します。
パラメーター
-
name
パラメーター名。
返品ポリシー
プロパティ値。
GetProperty
構文: public inline std::string GetProperty ( PropertyId id ) const;
ID でプロパティ値を取得します。
パラメーター
-
id
パラメーター ID。
返品ポリシー
プロパティ値。
GetAudioProcessingOptions
構文: public inline std::shared_ptr< AudioProcessingOptions > GetAudioProcessingOptions ( ) const;
Speech SDK で使用されるオーディオ処理のパラメーターを含む AudioProcessingOptions クラスのインスタンスを取得します。
返品ポリシー
AudioProcessingOptions オブジェクトへの共有ポインター。
~AudioConfig
構文: public inline virtual ~AudioConfig ( );
オブジェクトを破棄します。
FromDefaultMicrophoneInput
構文: public inline static std::shared_ptr< AudioConfig > FromDefaultMicrophoneInput ( );
システムの既定のマイクを表す AudioConfig オブジェクトを作成します。
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromDefaultMicrophoneInput
構文: public inline static std::shared_ptr< AudioConfig > FromDefaultMicrophoneInput ( std::shared_ptr< AudioProcessingOptions > audioProcessingOptions );
システムの既定のマイクを表す AudioConfig オブジェクトを作成します。
パラメーター
-
audioProcessingOptions
オーディオ処理オプション。
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromMicrophoneInput
構文: public inline static std::shared_ptr< AudioConfig > FromMicrophoneInput ( const std::string & deviceName );
システム上の特定のマイクを表す AudioConfig オブジェクトを作成します。 バージョン 1.3.0 で追加されました。
パラメーター
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromMicrophoneInput
構文: public inline static std::shared_ptr< AudioConfig > FromMicrophoneInput ( const std::string & deviceName , std::shared_ptr< AudioProcessingOptions > audioProcessingOptions );
システム上の特定のマイクを表す AudioConfig オブジェクトを作成します。
パラメーター
deviceName
デバイス名を指定します。 プラットフォーム固有のマイク名を取得する方法については、このページ を参照してください。audioProcessingOptions
オーディオ処理オプション。
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromWavFileInput
構文: public inline static std::shared_ptr< AudioConfig > FromWavFileInput ( const std::string & fileName );
指定したファイルを表す AudioConfig オブジェクトを作成します。
パラメーター
-
fileName
オーディオ入力ファイルを指定します。
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromWavFileInput
構文: public inline static std::shared_ptr< AudioConfig > FromWavFileInput ( const std::string & fileName , std::shared_ptr< AudioProcessingOptions > audioProcessingOptions );
指定したファイルを表す AudioConfig オブジェクトを作成します。
パラメーター
fileName
オーディオ入力ファイルを指定します。audioProcessingOptions
オーディオ処理オプション。
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromStreamInput
構文: public inline static std::shared_ptr< AudioConfig > FromStreamInput ( std::shared_ptr< AudioInputStream > stream );
指定したストリームを表す AudioConfig オブジェクトを作成します。
パラメーター
-
stream
カスタム オーディオ入力ストリームを指定します。
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromStreamInput
構文: public inline static std::shared_ptr< AudioConfig > FromStreamInput ( std::shared_ptr< AudioInputStream > stream , std::shared_ptr< AudioProcessingOptions > audioProcessingOptions );
指定したストリームを表す AudioConfig オブジェクトを作成します。
パラメーター
stream
カスタム オーディオ入力ストリームを指定します。audioProcessingOptions
オーディオ処理オプション。
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromDefaultSpeakerOutput
構文: public inline static std::shared_ptr< AudioConfig > FromDefaultSpeakerOutput ( );
システム上の既定のオーディオ出力デバイス (スピーカー) を表す AudioConfig オブジェクトを作成します。 バージョン 1.4.0 で追加されました。
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromSpeakerOutput
構文: public inline static std::shared_ptr< AudioConfig > FromSpeakerOutput ( const std::string & deviceName );
システム上の特定のスピーカーを表す AudioConfig オブジェクトを作成します。 バージョン 1.14.0 で追加されました。
パラメーター
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromWavFileOutput
構文: public inline static std::shared_ptr< AudioConfig > FromWavFileOutput ( const std::string & fileName );
オーディオ出力用に指定されたファイルを表す AudioConfig オブジェクトを作成します。 バージョン 1.4.0 で追加されました。
パラメーター
-
fileName
オーディオ出力ファイルを指定します。 親ディレクトリは既に存在している必要があります。
返品ポリシー
AudioConfig オブジェクトへの共有ポインター
FromStreamOutput
構文: public inline static std::shared_ptr< AudioConfig > FromStreamOutput ( std::shared_ptr< AudioOutputStream > stream );
指定した出力ストリームを表す AudioConfig オブジェクトを作成します。 バージョン 1.4.0 で追加されました。
パラメーター
-
stream
カスタム オーディオ出力ストリームを指定します。
返品ポリシー
AudioConfig オブジェクトへの共有ポインター