Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API module Google::Cloud::Speech::V1p1beta1::RecognitionMetadata::MicrophoneDistance.
Enumerates the types of capture settings describing an audio file.
Constants
MICROPHONE_DISTANCE_UNSPECIFIED
value: 0 Audio type is not known.
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.
MIDFIELD
value: 2 The speaker if within 3 meters of the microphone.
FARFIELD
value: 3 The speaker is more than 3 meters away from the microphone.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Speech-to-Text V1p1beta1 API - Module Google::Cloud::Speech::V1p1beta1::RecognitionMetadata::MicrophoneDistance (v0.25.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.25.0 (latest)](/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.24.1](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.24.1/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.23.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.23.0/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.22.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.22.0/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.21.1](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.21.1/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.20.2](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.20.2/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.19.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.19.0/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.18.1](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.18.1/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.17.1](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.17.1/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.16.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.16.0/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.15.3](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.15.3/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.14.0/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.13.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.13.0/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance)\n- [0.12.4](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.12.4/Google-Cloud-Speech-V1p1beta1-RecognitionMetadata-MicrophoneDistance) \nReference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API module Google::Cloud::Speech::V1p1beta1::RecognitionMetadata::MicrophoneDistance.\n\nEnumerates the types of capture settings describing an audio file.\n\nConstants\n---------\n\n### MICROPHONE_DISTANCE_UNSPECIFIED\n\n**value:** 0 \nAudio type is not known.\n\n### NEARFIELD\n\n**value:** 1 \nThe audio was captured from a closely placed microphone. Eg. phone,\ndictaphone, or handheld microphone. Generally if there speaker is within\n1 meter of the microphone.\n\n### MIDFIELD\n\n**value:** 2 \nThe speaker if within 3 meters of the microphone.\n\n### FARFIELD\n\n**value:** 3 \nThe speaker is more than 3 meters away from the microphone."]]