Cloud Speech V1 Client - Class MicrophoneDistance (1.11.2)

Reference documentation and code samples for the Cloud Speech V1 Client class MicrophoneDistance.

Enumerates the types of capture settings describing an audio file.

Protobuf type google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance

Methods

name

Parameter
NameDescription
value mixed

value

Parameter
NameDescription
name mixed

Constants

MICROPHONE_DISTANCE_UNSPECIFIED

Value: 0

Audio type is not known.

Generated from protobuf enum MICROPHONE_DISTANCE_UNSPECIFIED = 0;

NEARFIELD

Value: 1

The audio was captured from a closely placed microphone. Eg. phone, dictaphone, or handheld microphone. Generally if there speaker is within 1 meter of the microphone.

Generated from protobuf enum NEARFIELD = 1;

MIDFIELD

Value: 2

The speaker if within 3 meters of the microphone.

Generated from protobuf enum MIDFIELD = 2;

FARFIELD

Value: 3

The speaker is more than 3 meters away from the microphone.

Generated from protobuf enum FARFIELD = 3;