Reference documentation and code samples for the Cloud Speech-to-Text V1 API module Google::Cloud::Speech::V1::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 V1 API - Module Google::Cloud::Speech::V1::RecognitionMetadata::MicrophoneDistance (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-speech-v1/latest/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [1.2.1](/ruby/docs/reference/google-cloud-speech-v1/1.2.1/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [1.1.0](/ruby/docs/reference/google-cloud-speech-v1/1.1.0/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [1.0.1](/ruby/docs/reference/google-cloud-speech-v1/1.0.1/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.17.0](/ruby/docs/reference/google-cloud-speech-v1/0.17.0/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.16.2](/ruby/docs/reference/google-cloud-speech-v1/0.16.2/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.15.0](/ruby/docs/reference/google-cloud-speech-v1/0.15.0/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v1/0.14.0/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.13.1](/ruby/docs/reference/google-cloud-speech-v1/0.13.1/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.12.1](/ruby/docs/reference/google-cloud-speech-v1/0.12.1/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.11.0](/ruby/docs/reference/google-cloud-speech-v1/0.11.0/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.10.2](/ruby/docs/reference/google-cloud-speech-v1/0.10.2/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.9.0](/ruby/docs/reference/google-cloud-speech-v1/0.9.0/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.8.0](/ruby/docs/reference/google-cloud-speech-v1/0.8.0/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance)\n- [0.7.3](/ruby/docs/reference/google-cloud-speech-v1/0.7.3/Google-Cloud-Speech-V1-RecognitionMetadata-MicrophoneDistance) \nReference documentation and code samples for the Cloud Speech-to-Text V1 API module Google::Cloud::Speech::V1::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."]]