aws-doc-sdk-examples
aws-doc-sdk-examples copied to clipboard
TranscribeStreamingClient does not label speakers
Expected behavior
TranscribeStreamingClient to return speaker labels during transcription
Actual behavior
no speaker field is returned
Steps to reproduce
cloned this repo run the transcribe-streaming-app project this section of the configuration is not responding to ShowSpeakerLabels flag https://github.com/awsdocs/aws-doc-sdk-examples/blob/42b80d9b07ed01803624df5641ee23ce56d9f161/javascriptv3/example_code/cross-services/transcribe-streaming-app/src/libs/transcribeClient.js#L70
my configuration looks like this
const command = new StartStreamTranscriptionCommand({
LanguageCode: language,
MediaEncoding: "pcm",
MediaSampleRateHertz: SAMPLE_RATE,
AudioStream: getAudioStream(),
EnablePartialResultsStabilization: true,
PartialResultsStability: "high",
Settings: { ShowSpeakerLabels: true, MaxSpeakerLabels: 2 },
});
### Logs / stacktrace (if applicable)
_No response_
### Which SDK were you using?
JavaScript (v3)
### Which OS were you using?
macOS
### SDK version
aws-cli/2.15.12
### OS version
macOS Ventura