aws-doc-sdk-examples icon indicating copy to clipboard operation
aws-doc-sdk-examples copied to clipboard

TranscribeStreamingClient does not label speakers

Open davvit opened this issue 1 year ago • 0 comments

Expected behavior

TranscribeStreamingClient to return speaker labels during transcription

Actual behavior

no speaker field is returned image

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

davvit avatar Feb 02 '24 05:02 davvit