Class: Google::Cloud::Speech::V1p1beta1::RecognitionMetadata

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb

Overview

Description of audio data to be recognized.

Defined Under Namespace

Modules: InteractionType, MicrophoneDistance, OriginalMediaType, RecordingDeviceType

Instance Attribute Summary collapse

Instance Attribute Details

#audio_topic::String

Returns Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".

Returns:

  • (::String)

    Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".



456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 456

class RecognitionMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Use case categories that the audio recognition request can be described
  # by.
  module InteractionType
    # Use case is either unknown or is something other than one of the other
    # values below.
    INTERACTION_TYPE_UNSPECIFIED = 0

    # Multiple people in a conversation or discussion. For example in a
    # meeting with two or more people actively participating. Typically
    # all the primary people speaking would be in the same room (if not,
    # see PHONE_CALL)
    DISCUSSION = 1

    # One or more persons lecturing or presenting to others, mostly
    # uninterrupted.
    PRESENTATION = 2

    # A phone-call or video-conference in which two or more people, who are
    # not in the same room, are actively participating.
    PHONE_CALL = 3

    # A recorded message intended for another person to listen to.
    VOICEMAIL = 4

    # Professionally produced audio (eg. TV Show, Podcast).
    PROFESSIONALLY_PRODUCED = 5

    # Transcribe spoken questions and queries into text.
    VOICE_SEARCH = 6

    # Transcribe voice commands, such as for controlling a device.
    VOICE_COMMAND = 7

    # Transcribe speech to text to create a written document, such as a
    # text-message, email or report.
    DICTATION = 8
  end

  # Enumerates the types of capture settings describing an audio file.
  module MicrophoneDistance
    # Audio type is not known.
    MICROPHONE_DISTANCE_UNSPECIFIED = 0

    # 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.
    NEARFIELD = 1

    # The speaker if within 3 meters of the microphone.
    MIDFIELD = 2

    # The speaker is more than 3 meters away from the microphone.
    FARFIELD = 3
  end

  # The original media the speech was recorded on.
  module OriginalMediaType
    # Unknown original media type.
    ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0

    # The speech data is an audio recording.
    AUDIO = 1

    # The speech data originally recorded on a video.
    VIDEO = 2
  end

  # The type of device the speech was recorded with.
  module RecordingDeviceType
    # The recording device is unknown.
    RECORDING_DEVICE_TYPE_UNSPECIFIED = 0

    # Speech was recorded on a smartphone.
    SMARTPHONE = 1

    # Speech was recorded using a personal computer or tablet.
    PC = 2

    # Speech was recorded over a phone line.
    PHONE_LINE = 3

    # Speech was recorded in a vehicle.
    VEHICLE = 4

    # Speech was recorded outdoors.
    OTHER_OUTDOOR_DEVICE = 5

    # Speech was recorded indoors.
    OTHER_INDOOR_DEVICE = 6
  end
end

#industry_naics_code_of_audio::Integer

Returns The industry vertical to which this speech recognition request most closely applies. This is most indicative of the topics contained in the audio. Use the 6-digit NAICS code to identify the industry vertical - see https://www.naics.com/search/.

Returns:

  • (::Integer)

    The industry vertical to which this speech recognition request most closely applies. This is most indicative of the topics contained in the audio. Use the 6-digit NAICS code to identify the industry vertical - see https://www.naics.com/search/.



456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 456

class RecognitionMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Use case categories that the audio recognition request can be described
  # by.
  module InteractionType
    # Use case is either unknown or is something other than one of the other
    # values below.
    INTERACTION_TYPE_UNSPECIFIED = 0

    # Multiple people in a conversation or discussion. For example in a
    # meeting with two or more people actively participating. Typically
    # all the primary people speaking would be in the same room (if not,
    # see PHONE_CALL)
    DISCUSSION = 1

    # One or more persons lecturing or presenting to others, mostly
    # uninterrupted.
    PRESENTATION = 2

    # A phone-call or video-conference in which two or more people, who are
    # not in the same room, are actively participating.
    PHONE_CALL = 3

    # A recorded message intended for another person to listen to.
    VOICEMAIL = 4

    # Professionally produced audio (eg. TV Show, Podcast).
    PROFESSIONALLY_PRODUCED = 5

    # Transcribe spoken questions and queries into text.
    VOICE_SEARCH = 6

    # Transcribe voice commands, such as for controlling a device.
    VOICE_COMMAND = 7

    # Transcribe speech to text to create a written document, such as a
    # text-message, email or report.
    DICTATION = 8
  end

  # Enumerates the types of capture settings describing an audio file.
  module MicrophoneDistance
    # Audio type is not known.
    MICROPHONE_DISTANCE_UNSPECIFIED = 0

    # 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.
    NEARFIELD = 1

    # The speaker if within 3 meters of the microphone.
    MIDFIELD = 2

    # The speaker is more than 3 meters away from the microphone.
    FARFIELD = 3
  end

  # The original media the speech was recorded on.
  module OriginalMediaType
    # Unknown original media type.
    ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0

    # The speech data is an audio recording.
    AUDIO = 1

    # The speech data originally recorded on a video.
    VIDEO = 2
  end

  # The type of device the speech was recorded with.
  module RecordingDeviceType
    # The recording device is unknown.
    RECORDING_DEVICE_TYPE_UNSPECIFIED = 0

    # Speech was recorded on a smartphone.
    SMARTPHONE = 1

    # Speech was recorded using a personal computer or tablet.
    PC = 2

    # Speech was recorded over a phone line.
    PHONE_LINE = 3

    # Speech was recorded in a vehicle.
    VEHICLE = 4

    # Speech was recorded outdoors.
    OTHER_OUTDOOR_DEVICE = 5

    # Speech was recorded indoors.
    OTHER_INDOOR_DEVICE = 6
  end
end

#interaction_type::Google::Cloud::Speech::V1p1beta1::RecognitionMetadata::InteractionType

Returns The use case most closely describing the audio content to be recognized.

Returns:



456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 456

class RecognitionMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Use case categories that the audio recognition request can be described
  # by.
  module InteractionType
    # Use case is either unknown or is something other than one of the other
    # values below.
    INTERACTION_TYPE_UNSPECIFIED = 0

    # Multiple people in a conversation or discussion. For example in a
    # meeting with two or more people actively participating. Typically
    # all the primary people speaking would be in the same room (if not,
    # see PHONE_CALL)
    DISCUSSION = 1

    # One or more persons lecturing or presenting to others, mostly
    # uninterrupted.
    PRESENTATION = 2

    # A phone-call or video-conference in which two or more people, who are
    # not in the same room, are actively participating.
    PHONE_CALL = 3

    # A recorded message intended for another person to listen to.
    VOICEMAIL = 4

    # Professionally produced audio (eg. TV Show, Podcast).
    PROFESSIONALLY_PRODUCED = 5

    # Transcribe spoken questions and queries into text.
    VOICE_SEARCH = 6

    # Transcribe voice commands, such as for controlling a device.
    VOICE_COMMAND = 7

    # Transcribe speech to text to create a written document, such as a
    # text-message, email or report.
    DICTATION = 8
  end

  # Enumerates the types of capture settings describing an audio file.
  module MicrophoneDistance
    # Audio type is not known.
    MICROPHONE_DISTANCE_UNSPECIFIED = 0

    # 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.
    NEARFIELD = 1

    # The speaker if within 3 meters of the microphone.
    MIDFIELD = 2

    # The speaker is more than 3 meters away from the microphone.
    FARFIELD = 3
  end

  # The original media the speech was recorded on.
  module OriginalMediaType
    # Unknown original media type.
    ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0

    # The speech data is an audio recording.
    AUDIO = 1

    # The speech data originally recorded on a video.
    VIDEO = 2
  end

  # The type of device the speech was recorded with.
  module RecordingDeviceType
    # The recording device is unknown.
    RECORDING_DEVICE_TYPE_UNSPECIFIED = 0

    # Speech was recorded on a smartphone.
    SMARTPHONE = 1

    # Speech was recorded using a personal computer or tablet.
    PC = 2

    # Speech was recorded over a phone line.
    PHONE_LINE = 3

    # Speech was recorded in a vehicle.
    VEHICLE = 4

    # Speech was recorded outdoors.
    OTHER_OUTDOOR_DEVICE = 5

    # Speech was recorded indoors.
    OTHER_INDOOR_DEVICE = 6
  end
end

#microphone_distance::Google::Cloud::Speech::V1p1beta1::RecognitionMetadata::MicrophoneDistance

Returns The audio type that most closely describes the audio being recognized.

Returns:



456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 456

class RecognitionMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Use case categories that the audio recognition request can be described
  # by.
  module InteractionType
    # Use case is either unknown or is something other than one of the other
    # values below.
    INTERACTION_TYPE_UNSPECIFIED = 0

    # Multiple people in a conversation or discussion. For example in a
    # meeting with two or more people actively participating. Typically
    # all the primary people speaking would be in the same room (if not,
    # see PHONE_CALL)
    DISCUSSION = 1

    # One or more persons lecturing or presenting to others, mostly
    # uninterrupted.
    PRESENTATION = 2

    # A phone-call or video-conference in which two or more people, who are
    # not in the same room, are actively participating.
    PHONE_CALL = 3

    # A recorded message intended for another person to listen to.
    VOICEMAIL = 4

    # Professionally produced audio (eg. TV Show, Podcast).
    PROFESSIONALLY_PRODUCED = 5

    # Transcribe spoken questions and queries into text.
    VOICE_SEARCH = 6

    # Transcribe voice commands, such as for controlling a device.
    VOICE_COMMAND = 7

    # Transcribe speech to text to create a written document, such as a
    # text-message, email or report.
    DICTATION = 8
  end

  # Enumerates the types of capture settings describing an audio file.
  module MicrophoneDistance
    # Audio type is not known.
    MICROPHONE_DISTANCE_UNSPECIFIED = 0

    # 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.
    NEARFIELD = 1

    # The speaker if within 3 meters of the microphone.
    MIDFIELD = 2

    # The speaker is more than 3 meters away from the microphone.
    FARFIELD = 3
  end

  # The original media the speech was recorded on.
  module OriginalMediaType
    # Unknown original media type.
    ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0

    # The speech data is an audio recording.
    AUDIO = 1

    # The speech data originally recorded on a video.
    VIDEO = 2
  end

  # The type of device the speech was recorded with.
  module RecordingDeviceType
    # The recording device is unknown.
    RECORDING_DEVICE_TYPE_UNSPECIFIED = 0

    # Speech was recorded on a smartphone.
    SMARTPHONE = 1

    # Speech was recorded using a personal computer or tablet.
    PC = 2

    # Speech was recorded over a phone line.
    PHONE_LINE = 3

    # Speech was recorded in a vehicle.
    VEHICLE = 4

    # Speech was recorded outdoors.
    OTHER_OUTDOOR_DEVICE = 5

    # Speech was recorded indoors.
    OTHER_INDOOR_DEVICE = 6
  end
end

#obfuscated_id::Integer

Returns Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.

Returns:

  • (::Integer)

    Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.



456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 456

class RecognitionMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Use case categories that the audio recognition request can be described
  # by.
  module InteractionType
    # Use case is either unknown or is something other than one of the other
    # values below.
    INTERACTION_TYPE_UNSPECIFIED = 0

    # Multiple people in a conversation or discussion. For example in a
    # meeting with two or more people actively participating. Typically
    # all the primary people speaking would be in the same room (if not,
    # see PHONE_CALL)
    DISCUSSION = 1

    # One or more persons lecturing or presenting to others, mostly
    # uninterrupted.
    PRESENTATION = 2

    # A phone-call or video-conference in which two or more people, who are
    # not in the same room, are actively participating.
    PHONE_CALL = 3

    # A recorded message intended for another person to listen to.
    VOICEMAIL = 4

    # Professionally produced audio (eg. TV Show, Podcast).
    PROFESSIONALLY_PRODUCED = 5

    # Transcribe spoken questions and queries into text.
    VOICE_SEARCH = 6

    # Transcribe voice commands, such as for controlling a device.
    VOICE_COMMAND = 7

    # Transcribe speech to text to create a written document, such as a
    # text-message, email or report.
    DICTATION = 8
  end

  # Enumerates the types of capture settings describing an audio file.
  module MicrophoneDistance
    # Audio type is not known.
    MICROPHONE_DISTANCE_UNSPECIFIED = 0

    # 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.
    NEARFIELD = 1

    # The speaker if within 3 meters of the microphone.
    MIDFIELD = 2

    # The speaker is more than 3 meters away from the microphone.
    FARFIELD = 3
  end

  # The original media the speech was recorded on.
  module OriginalMediaType
    # Unknown original media type.
    ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0

    # The speech data is an audio recording.
    AUDIO = 1

    # The speech data originally recorded on a video.
    VIDEO = 2
  end

  # The type of device the speech was recorded with.
  module RecordingDeviceType
    # The recording device is unknown.
    RECORDING_DEVICE_TYPE_UNSPECIFIED = 0

    # Speech was recorded on a smartphone.
    SMARTPHONE = 1

    # Speech was recorded using a personal computer or tablet.
    PC = 2

    # Speech was recorded over a phone line.
    PHONE_LINE = 3

    # Speech was recorded in a vehicle.
    VEHICLE = 4

    # Speech was recorded outdoors.
    OTHER_OUTDOOR_DEVICE = 5

    # Speech was recorded indoors.
    OTHER_INDOOR_DEVICE = 6
  end
end

#original_media_type::Google::Cloud::Speech::V1p1beta1::RecognitionMetadata::OriginalMediaType

Returns The original media the speech was recorded on.

Returns:



456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 456

class RecognitionMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Use case categories that the audio recognition request can be described
  # by.
  module InteractionType
    # Use case is either unknown or is something other than one of the other
    # values below.
    INTERACTION_TYPE_UNSPECIFIED = 0

    # Multiple people in a conversation or discussion. For example in a
    # meeting with two or more people actively participating. Typically
    # all the primary people speaking would be in the same room (if not,
    # see PHONE_CALL)
    DISCUSSION = 1

    # One or more persons lecturing or presenting to others, mostly
    # uninterrupted.
    PRESENTATION = 2

    # A phone-call or video-conference in which two or more people, who are
    # not in the same room, are actively participating.
    PHONE_CALL = 3

    # A recorded message intended for another person to listen to.
    VOICEMAIL = 4

    # Professionally produced audio (eg. TV Show, Podcast).
    PROFESSIONALLY_PRODUCED = 5

    # Transcribe spoken questions and queries into text.
    VOICE_SEARCH = 6

    # Transcribe voice commands, such as for controlling a device.
    VOICE_COMMAND = 7

    # Transcribe speech to text to create a written document, such as a
    # text-message, email or report.
    DICTATION = 8
  end

  # Enumerates the types of capture settings describing an audio file.
  module MicrophoneDistance
    # Audio type is not known.
    MICROPHONE_DISTANCE_UNSPECIFIED = 0

    # 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.
    NEARFIELD = 1

    # The speaker if within 3 meters of the microphone.
    MIDFIELD = 2

    # The speaker is more than 3 meters away from the microphone.
    FARFIELD = 3
  end

  # The original media the speech was recorded on.
  module OriginalMediaType
    # Unknown original media type.
    ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0

    # The speech data is an audio recording.
    AUDIO = 1

    # The speech data originally recorded on a video.
    VIDEO = 2
  end

  # The type of device the speech was recorded with.
  module RecordingDeviceType
    # The recording device is unknown.
    RECORDING_DEVICE_TYPE_UNSPECIFIED = 0

    # Speech was recorded on a smartphone.
    SMARTPHONE = 1

    # Speech was recorded using a personal computer or tablet.
    PC = 2

    # Speech was recorded over a phone line.
    PHONE_LINE = 3

    # Speech was recorded in a vehicle.
    VEHICLE = 4

    # Speech was recorded outdoors.
    OTHER_OUTDOOR_DEVICE = 5

    # Speech was recorded indoors.
    OTHER_INDOOR_DEVICE = 6
  end
end

#original_mime_type::String

Returns Mime type of the original audio file. For example audio/m4a, audio/x-alaw-basic, audio/mp3, audio/3gpp. A list of possible audio mime types is maintained at http://www.iana.org/assignments/media-types/media-types.xhtml#audio.

Returns:



456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 456

class RecognitionMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Use case categories that the audio recognition request can be described
  # by.
  module InteractionType
    # Use case is either unknown or is something other than one of the other
    # values below.
    INTERACTION_TYPE_UNSPECIFIED = 0

    # Multiple people in a conversation or discussion. For example in a
    # meeting with two or more people actively participating. Typically
    # all the primary people speaking would be in the same room (if not,
    # see PHONE_CALL)
    DISCUSSION = 1

    # One or more persons lecturing or presenting to others, mostly
    # uninterrupted.
    PRESENTATION = 2

    # A phone-call or video-conference in which two or more people, who are
    # not in the same room, are actively participating.
    PHONE_CALL = 3

    # A recorded message intended for another person to listen to.
    VOICEMAIL = 4

    # Professionally produced audio (eg. TV Show, Podcast).
    PROFESSIONALLY_PRODUCED = 5

    # Transcribe spoken questions and queries into text.
    VOICE_SEARCH = 6

    # Transcribe voice commands, such as for controlling a device.
    VOICE_COMMAND = 7

    # Transcribe speech to text to create a written document, such as a
    # text-message, email or report.
    DICTATION = 8
  end

  # Enumerates the types of capture settings describing an audio file.
  module MicrophoneDistance
    # Audio type is not known.
    MICROPHONE_DISTANCE_UNSPECIFIED = 0

    # 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.
    NEARFIELD = 1

    # The speaker if within 3 meters of the microphone.
    MIDFIELD = 2

    # The speaker is more than 3 meters away from the microphone.
    FARFIELD = 3
  end

  # The original media the speech was recorded on.
  module OriginalMediaType
    # Unknown original media type.
    ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0

    # The speech data is an audio recording.
    AUDIO = 1

    # The speech data originally recorded on a video.
    VIDEO = 2
  end

  # The type of device the speech was recorded with.
  module RecordingDeviceType
    # The recording device is unknown.
    RECORDING_DEVICE_TYPE_UNSPECIFIED = 0

    # Speech was recorded on a smartphone.
    SMARTPHONE = 1

    # Speech was recorded using a personal computer or tablet.
    PC = 2

    # Speech was recorded over a phone line.
    PHONE_LINE = 3

    # Speech was recorded in a vehicle.
    VEHICLE = 4

    # Speech was recorded outdoors.
    OTHER_OUTDOOR_DEVICE = 5

    # Speech was recorded indoors.
    OTHER_INDOOR_DEVICE = 6
  end
end

#recording_device_name::String

Returns The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or 'Cardioid Microphone'.

Returns:

  • (::String)

    The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or 'Cardioid Microphone'.



456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 456

class RecognitionMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Use case categories that the audio recognition request can be described
  # by.
  module InteractionType
    # Use case is either unknown or is something other than one of the other
    # values below.
    INTERACTION_TYPE_UNSPECIFIED = 0

    # Multiple people in a conversation or discussion. For example in a
    # meeting with two or more people actively participating. Typically
    # all the primary people speaking would be in the same room (if not,
    # see PHONE_CALL)
    DISCUSSION = 1

    # One or more persons lecturing or presenting to others, mostly
    # uninterrupted.
    PRESENTATION = 2

    # A phone-call or video-conference in which two or more people, who are
    # not in the same room, are actively participating.
    PHONE_CALL = 3

    # A recorded message intended for another person to listen to.
    VOICEMAIL = 4

    # Professionally produced audio (eg. TV Show, Podcast).
    PROFESSIONALLY_PRODUCED = 5

    # Transcribe spoken questions and queries into text.
    VOICE_SEARCH = 6

    # Transcribe voice commands, such as for controlling a device.
    VOICE_COMMAND = 7

    # Transcribe speech to text to create a written document, such as a
    # text-message, email or report.
    DICTATION = 8
  end

  # Enumerates the types of capture settings describing an audio file.
  module MicrophoneDistance
    # Audio type is not known.
    MICROPHONE_DISTANCE_UNSPECIFIED = 0

    # 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.
    NEARFIELD = 1

    # The speaker if within 3 meters of the microphone.
    MIDFIELD = 2

    # The speaker is more than 3 meters away from the microphone.
    FARFIELD = 3
  end

  # The original media the speech was recorded on.
  module OriginalMediaType
    # Unknown original media type.
    ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0

    # The speech data is an audio recording.
    AUDIO = 1

    # The speech data originally recorded on a video.
    VIDEO = 2
  end

  # The type of device the speech was recorded with.
  module RecordingDeviceType
    # The recording device is unknown.
    RECORDING_DEVICE_TYPE_UNSPECIFIED = 0

    # Speech was recorded on a smartphone.
    SMARTPHONE = 1

    # Speech was recorded using a personal computer or tablet.
    PC = 2

    # Speech was recorded over a phone line.
    PHONE_LINE = 3

    # Speech was recorded in a vehicle.
    VEHICLE = 4

    # Speech was recorded outdoors.
    OTHER_OUTDOOR_DEVICE = 5

    # Speech was recorded indoors.
    OTHER_INDOOR_DEVICE = 6
  end
end

#recording_device_type::Google::Cloud::Speech::V1p1beta1::RecognitionMetadata::RecordingDeviceType

Returns The type of device the speech was recorded with.

Returns:



456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 456

class RecognitionMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Use case categories that the audio recognition request can be described
  # by.
  module InteractionType
    # Use case is either unknown or is something other than one of the other
    # values below.
    INTERACTION_TYPE_UNSPECIFIED = 0

    # Multiple people in a conversation or discussion. For example in a
    # meeting with two or more people actively participating. Typically
    # all the primary people speaking would be in the same room (if not,
    # see PHONE_CALL)
    DISCUSSION = 1

    # One or more persons lecturing or presenting to others, mostly
    # uninterrupted.
    PRESENTATION = 2

    # A phone-call or video-conference in which two or more people, who are
    # not in the same room, are actively participating.
    PHONE_CALL = 3

    # A recorded message intended for another person to listen to.
    VOICEMAIL = 4

    # Professionally produced audio (eg. TV Show, Podcast).
    PROFESSIONALLY_PRODUCED = 5

    # Transcribe spoken questions and queries into text.
    VOICE_SEARCH = 6

    # Transcribe voice commands, such as for controlling a device.
    VOICE_COMMAND = 7

    # Transcribe speech to text to create a written document, such as a
    # text-message, email or report.
    DICTATION = 8
  end

  # Enumerates the types of capture settings describing an audio file.
  module MicrophoneDistance
    # Audio type is not known.
    MICROPHONE_DISTANCE_UNSPECIFIED = 0

    # 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.
    NEARFIELD = 1

    # The speaker if within 3 meters of the microphone.
    MIDFIELD = 2

    # The speaker is more than 3 meters away from the microphone.
    FARFIELD = 3
  end

  # The original media the speech was recorded on.
  module OriginalMediaType
    # Unknown original media type.
    ORIGINAL_MEDIA_TYPE_UNSPECIFIED = 0

    # The speech data is an audio recording.
    AUDIO = 1

    # The speech data originally recorded on a video.
    VIDEO = 2
  end

  # The type of device the speech was recorded with.
  module RecordingDeviceType
    # The recording device is unknown.
    RECORDING_DEVICE_TYPE_UNSPECIFIED = 0

    # Speech was recorded on a smartphone.
    SMARTPHONE = 1

    # Speech was recorded using a personal computer or tablet.
    PC = 2

    # Speech was recorded over a phone line.
    PHONE_LINE = 3

    # Speech was recorded in a vehicle.
    VEHICLE = 4

    # Speech was recorded outdoors.
    OTHER_OUTDOOR_DEVICE = 5

    # Speech was recorded indoors.
    OTHER_INDOOR_DEVICE = 6
  end
end