azure-docs-sdk-java/docs-ref-autogen/com.microsoft.cognitiveserv...

315 строки
25 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig"
name: "AudioConfig"
nameWithType: "AudioConfig"
summary: "Represents audio input or output configuration."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"java.lang.Object.clone()?alt=java.lang.Object.clone&text=clone\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.equals(java.lang.Object)?alt=java.lang.Object.equals&text=equals\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.finalize()?alt=java.lang.Object.finalize&text=finalize\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.getClass()?alt=java.lang.Object.getClass&text=getClass\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.hashCode()?alt=java.lang.Object.hashCode&text=hashCode\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notify()?alt=java.lang.Object.notify&text=notify\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notifyAll()?alt=java.lang.Object.notifyAll&text=notifyAll\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.toString()?alt=java.lang.Object.toString&text=toString\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait()?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long,int)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
syntax: "public final class **AudioConfig**</br> implements <xref href=\"java.lang.AutoCloseable?alt=java.lang.AutoCloseable&text=AutoCloseable\" data-throw-if-not-resolved=\"False\" />"
methods:
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.close()"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.close()"
name: "close()"
nameWithType: "AudioConfig.close()"
summary: "Explicitly frees any external resource attached to the object"
syntax: "public void close()"
desc: "Explicitly frees any external resource attached to the object"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromDefaultMicrophoneInput()"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromDefaultMicrophoneInput()"
name: "fromDefaultMicrophoneInput()"
nameWithType: "AudioConfig.fromDefaultMicrophoneInput()"
summary: "Creates an Audio<wbr>Config object representing the default microphone on the system."
modifiers:
- "static"
syntax: "public static AudioConfig fromDefaultMicrophoneInput()"
desc: "Creates an AudioConfig object representing the default microphone on the system."
returns:
description: "The audio input configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromDefaultMicrophoneInput(com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromDefaultMicrophoneInput(AudioProcessingOptions audioProcessingOptions)"
name: "fromDefaultMicrophoneInput(AudioProcessingOptions audioProcessingOptions)"
nameWithType: "AudioConfig.fromDefaultMicrophoneInput(AudioProcessingOptions audioProcessingOptions)"
summary: "Creates an Audio<wbr>Config object representing the default microphone on the system."
modifiers:
- "static"
parameters:
- description: "Specifies the audio processing options."
name: "audioProcessingOptions"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions?alt=com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions&text=AudioProcessingOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromDefaultMicrophoneInput(AudioProcessingOptions audioProcessingOptions)"
desc: "Creates an AudioConfig object representing the default microphone on the system."
returns:
description: "The audio input configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromDefaultSpeakerOutput()"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromDefaultSpeakerOutput()"
name: "fromDefaultSpeakerOutput()"
nameWithType: "AudioConfig.fromDefaultSpeakerOutput()"
summary: "Creates an Audio<wbr>Config object representing the default speaker on the system."
modifiers:
- "static"
syntax: "public static AudioConfig fromDefaultSpeakerOutput()"
desc: "Creates an AudioConfig object representing the default speaker on the system. Added in version 1.7.0"
returns:
description: "The audio output configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromMicrophoneInput(java.lang.String)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromMicrophoneInput(String deviceName)"
name: "fromMicrophoneInput(String deviceName)"
nameWithType: "AudioConfig.fromMicrophoneInput(String deviceName)"
summary: "Creates an Audio<wbr>Config object representing a specific microphone on the system."
modifiers:
- "static"
parameters:
- description: "Specifies the platform-specific id of the audio input device.\n Please refer to the <a href=\"https://aka.ms/csspeech/microphone-selection\">the online documentation</a> about how to retrieve that id on different platforms.\n This functionality was added in version 1.3.0."
name: "deviceName"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromMicrophoneInput(String deviceName)"
desc: "Creates an AudioConfig object representing a specific microphone on the system."
returns:
description: "The audio input configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromMicrophoneInput(java.lang.String,com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromMicrophoneInput(String deviceName, AudioProcessingOptions audioProcessingOptions)"
name: "fromMicrophoneInput(String deviceName, AudioProcessingOptions audioProcessingOptions)"
nameWithType: "AudioConfig.fromMicrophoneInput(String deviceName, AudioProcessingOptions audioProcessingOptions)"
summary: "Creates an Audio<wbr>Config object representing a specific microphone on the system."
modifiers:
- "static"
parameters:
- description: "Specifies the platform-specific id of the audio input device.\n Please refer to the <a href=\"https://aka.ms/csspeech/microphone-selection\">the online documentation</a> about how to retrieve that id on different platforms."
name: "deviceName"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- description: "Specifies the audio processing options."
name: "audioProcessingOptions"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions?alt=com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions&text=AudioProcessingOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromMicrophoneInput(String deviceName, AudioProcessingOptions audioProcessingOptions)"
desc: "Creates an AudioConfig object representing a specific microphone on the system."
returns:
description: "The audio input configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromSpeakerOutput(java.lang.String)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromSpeakerOutput(String deviceName)"
name: "fromSpeakerOutput(String deviceName)"
nameWithType: "AudioConfig.fromSpeakerOutput(String deviceName)"
summary: "Creates an Audio<wbr>Config object representing a specific speaker on the system."
modifiers:
- "static"
parameters:
- description: "Specifies the platform-specific id of the audio output device.\n Added in version 1.17.0"
name: "deviceName"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromSpeakerOutput(String deviceName)"
desc: "Creates an AudioConfig object representing a specific speaker on the system."
returns:
description: "The audio output configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromStreamInput(com.microsoft.cognitiveservices.speech.audio.AudioInputStream)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromStreamInput(AudioInputStream audioStream)"
name: "fromStreamInput(AudioInputStream audioStream)"
nameWithType: "AudioConfig.fromStreamInput(AudioInputStream audioStream)"
summary: "Creates an Audio<wbr>Config object representing the specified stream."
modifiers:
- "static"
parameters:
- description: "Specifies the custom audio input stream."
name: "audioStream"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioInputStream?alt=com.microsoft.cognitiveservices.speech.audio.AudioInputStream&text=AudioInputStream\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromStreamInput(AudioInputStream audioStream)"
desc: "Creates an AudioConfig object representing the specified stream."
returns:
description: "The audio input configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromStreamInput(com.microsoft.cognitiveservices.speech.audio.AudioInputStream,com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromStreamInput(AudioInputStream audioStream, AudioProcessingOptions audioProcessingOptions)"
name: "fromStreamInput(AudioInputStream audioStream, AudioProcessingOptions audioProcessingOptions)"
nameWithType: "AudioConfig.fromStreamInput(AudioInputStream audioStream, AudioProcessingOptions audioProcessingOptions)"
summary: "Creates an Audio<wbr>Config object representing the specified stream."
modifiers:
- "static"
parameters:
- description: "Specifies the custom audio input stream."
name: "audioStream"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioInputStream?alt=com.microsoft.cognitiveservices.speech.audio.AudioInputStream&text=AudioInputStream\" data-throw-if-not-resolved=\"False\" />"
- description: "Specifies the audio processing options."
name: "audioProcessingOptions"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions?alt=com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions&text=AudioProcessingOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromStreamInput(AudioInputStream audioStream, AudioProcessingOptions audioProcessingOptions)"
desc: "Creates an AudioConfig object representing the specified stream."
returns:
description: "The audio input configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromStreamInput(com.microsoft.cognitiveservices.speech.audio.PullAudioInputStreamCallback)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromStreamInput(PullAudioInputStreamCallback callback)"
name: "fromStreamInput(PullAudioInputStreamCallback callback)"
nameWithType: "AudioConfig.fromStreamInput(PullAudioInputStreamCallback callback)"
summary: "Creates an Audio<wbr>Config object representing the specified stream."
modifiers:
- "static"
parameters:
- description: "Specifies the pull audio input stream callback."
name: "callback"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.PullAudioInputStreamCallback?alt=com.microsoft.cognitiveservices.speech.audio.PullAudioInputStreamCallback&text=PullAudioInputStreamCallback\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromStreamInput(PullAudioInputStreamCallback callback)"
desc: "Creates an AudioConfig object representing the specified stream."
returns:
description: "The audio input configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromStreamInput(com.microsoft.cognitiveservices.speech.audio.PullAudioInputStreamCallback,com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromStreamInput(PullAudioInputStreamCallback callback, AudioProcessingOptions audioProcessingOptions)"
name: "fromStreamInput(PullAudioInputStreamCallback callback, AudioProcessingOptions audioProcessingOptions)"
nameWithType: "AudioConfig.fromStreamInput(PullAudioInputStreamCallback callback, AudioProcessingOptions audioProcessingOptions)"
summary: "Creates an Audio<wbr>Config object representing the specified stream."
modifiers:
- "static"
parameters:
- description: "Specifies the pull audio input stream callback."
name: "callback"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.PullAudioInputStreamCallback?alt=com.microsoft.cognitiveservices.speech.audio.PullAudioInputStreamCallback&text=PullAudioInputStreamCallback\" data-throw-if-not-resolved=\"False\" />"
- description: "Specifies the audio processing options."
name: "audioProcessingOptions"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions?alt=com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions&text=AudioProcessingOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromStreamInput(PullAudioInputStreamCallback callback, AudioProcessingOptions audioProcessingOptions)"
desc: "Creates an AudioConfig object representing the specified stream."
returns:
description: "The audio input configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromStreamOutput(com.microsoft.cognitiveservices.speech.audio.AudioOutputStream)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromStreamOutput(AudioOutputStream audioStream)"
name: "fromStreamOutput(AudioOutputStream audioStream)"
nameWithType: "AudioConfig.fromStreamOutput(AudioOutputStream audioStream)"
summary: "Creates an Audio<wbr>Config object representing the specified stream."
modifiers:
- "static"
parameters:
- description: "Specifies the custom audio output stream."
name: "audioStream"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioOutputStream?alt=com.microsoft.cognitiveservices.speech.audio.AudioOutputStream&text=AudioOutputStream\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromStreamOutput(AudioOutputStream audioStream)"
desc: "Creates an AudioConfig object representing the specified stream. Added in version 1.7.0"
returns:
description: "The audio output configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromWavFileInput(java.lang.String)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromWavFileInput(String fileName)"
name: "fromWavFileInput(String fileName)"
nameWithType: "AudioConfig.fromWavFileInput(String fileName)"
summary: "Creates an Audio<wbr>Config object representing the specified file."
modifiers:
- "static"
parameters:
- description: "Specifies the audio input file."
name: "fileName"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromWavFileInput(String fileName)"
desc: "Creates an AudioConfig object representing the specified file."
returns:
description: "The audio input configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromWavFileInput(java.lang.String,com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromWavFileInput(String fileName, AudioProcessingOptions audioProcessingOptions)"
name: "fromWavFileInput(String fileName, AudioProcessingOptions audioProcessingOptions)"
nameWithType: "AudioConfig.fromWavFileInput(String fileName, AudioProcessingOptions audioProcessingOptions)"
summary: "Creates an Audio<wbr>Config object representing the specified file."
modifiers:
- "static"
parameters:
- description: "Specifies the audio input file."
name: "fileName"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- description: "Specifies the audio processing options."
name: "audioProcessingOptions"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions?alt=com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions&text=AudioProcessingOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromWavFileInput(String fileName, AudioProcessingOptions audioProcessingOptions)"
desc: "Creates an AudioConfig object representing the specified file."
returns:
description: "The audio input configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromWavFileOutput(java.lang.String)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.fromWavFileOutput(String fileName)"
name: "fromWavFileOutput(String fileName)"
nameWithType: "AudioConfig.fromWavFileOutput(String fileName)"
summary: "Creates an Audio<wbr>Config object representing the specified file."
modifiers:
- "static"
parameters:
- description: "Specifies the audio output file. The parent directory must already exist."
name: "fileName"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AudioConfig fromWavFileOutput(String fileName)"
desc: "Creates an AudioConfig object representing the specified file. Added in version 1.7.0"
returns:
description: "The audio output configuration being created."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioConfig?alt=com.microsoft.cognitiveservices.speech.audio.AudioConfig&text=AudioConfig\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.getAudioProcessingOptions()"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.getAudioProcessingOptions()"
name: "getAudioProcessingOptions()"
nameWithType: "AudioConfig.getAudioProcessingOptions()"
summary: "Returns an Audio<wbr>Processing<wbr>Options object which contains the parameters used for audio processing."
syntax: "public AudioProcessingOptions getAudioProcessingOptions()"
desc: "Returns an AudioProcessingOptions object which contains the parameters used for audio processing."
returns:
description: "The audio processing options."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions?alt=com.microsoft.cognitiveservices.speech.audio.AudioProcessingOptions&text=AudioProcessingOptions\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.getImpl()"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.getImpl()"
name: "getImpl()"
nameWithType: "AudioConfig.getImpl()"
summary: "Returns the audio input configuration."
syntax: "public SafeHandle getImpl()"
desc: "Returns the audio input configuration."
returns:
description: "The implementation of the config."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.util.SafeHandle?alt=com.microsoft.cognitiveservices.speech.util.SafeHandle&text=SafeHandle\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.setProperty(com.microsoft.cognitiveservices.speech.PropertyId,java.lang.String)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.setProperty(PropertyId id, String value)"
name: "setProperty(PropertyId id, String value)"
nameWithType: "AudioConfig.setProperty(PropertyId id, String value)"
summary: "Sets the property by property<wbr>Id."
parameters:
- description: "PropertyId of the property."
name: "id"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.PropertyId?alt=com.microsoft.cognitiveservices.speech.PropertyId&text=PropertyId\" data-throw-if-not-resolved=\"False\" />"
- description: "The value."
name: "value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void setProperty(PropertyId id, String value)"
desc: "Sets the property by propertyId."
- uid: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.setProperty(java.lang.String,java.lang.String)"
fullName: "com.microsoft.cognitiveservices.speech.audio.AudioConfig.setProperty(String name, String value)"
name: "setProperty(String name, String value)"
nameWithType: "AudioConfig.setProperty(String name, String value)"
summary: "Sets a named property as value."
parameters:
- description: "the name of the property."
name: "name"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- description: "the value."
name: "value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void setProperty(String name, String value)"
desc: "Sets a named property as value."
type: "class"
desc: "Represents audio input or output configuration. Audio input can be from a microphone, file, or input stream. Audio output can be to a speaker, audio file output in WAV format, or output stream. Note: close() must be called in order to release underlying resources held by the object. Updated in version 1.7.0"
implements:
- "<xref href=\"java.lang.AutoCloseable?alt=java.lang.AutoCloseable&text=AutoCloseable\" data-throw-if-not-resolved=\"False\" />"
metadata: {}
package: "com.microsoft.cognitiveservices.speech.audio"
artifact: com.microsoft.cognitiveservices.speech:client-sdk:1.38.0