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

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

Deprecated.

This message is deprecated and may be removed in the next major version update.

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".



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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 515

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/.



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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 515

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:



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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 515

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:



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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 515

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

Deprecated.

This field is deprecated and may be removed in the next major version update.

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.



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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 515

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:



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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 515

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:



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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 515

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'.



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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 515

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:



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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 515

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