Skip to content

Add zh-CN to packages/web/src/hooks/useMicrophone.ts #1159

@very99

Description

@very99

Is your feature request related to a problem? Please describe the background.
Customers need requirements in English, Japanese, and Chinese

Feature you want to add or improve
Add the ability to recognize Chinese in voice input

packages/web/src/hooks/useMicrophone.ts

const command = new StartStreamTranscriptionCommand({
  LanguageCode: languageCode,
  IdentifyLanguage: languageCode ? false : true,
  LanguageOptions: languageCode ? undefined : 'en-US,ja-JP,zh-CN',
  MediaEncoding: 'pcm',
  MediaSampleRateHertz: 48000,
  AudioStream: audioStream(),
  ShowSpeakerLabel: speakerLabel,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststaleIssues or Pull Requests with no updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions