Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
passing following configs
metadata = types.RecognitionMetadata(
interaction_type=self.domain_params.get('interaction_type', 'DICTATION'),
microphone_distance='NEARFIELD',
original_media_type='AUDIO',
recording_device_type='PHONE_LINE',
original_mime_type='audio/wav',
audio_topic=self.domain_params.get('audio_topic', 'Communicating with IVR')
)
config = types.RecognitionConfig(
encoding=enums.RecognitionConfig.AudioEncoding.LINEAR16,
sample_rate_hertz=8000,
language_code='en-AU',
max_alternatives=5,
enable_word_time_offsets=True,
speech_contexts=[a, b, c ,d ... z],
model=name,
enable_word_confidence=True,
enable_automatic_punctuation=True,
metadata=metadata,
)