CommunityToolkit / CommunityToolkit/Maui

[Proposal] Speech to Text support audio/media file

Open
#2,589 0 comments 0 reactions 1 assignee Claimed by @VladislavAntonyuk View on GitHub
new proposal
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

### Feature name

Speech to Text file support

### Link to discussion

https://github.com/CommunityToolkit/Maui/discussions/2588

### Progress tracker

- [ ] Android Implementation
- [ ] iOS Implementation
- [ ] MacCatalyst Implementation
- [x] Windows Implementation
- [ ] Tizen Implementation
- [ ] Unit Tests
- [ ] Samples
- [ ] Documentation

### Summary

Windows platform already implemented by .net team here https://learn.microsoft.com/en-us/dotnet/api/system.speech.recognition.speechrecognitionengine?view=net-9.0-pp

### Motivation

That's make value on the subtitles for the media source.

### Detailed Design

Follow toolkit's Speech to Text design or the [runtime's speech engine](https://learn.microsoft.com/en-us/dotnet/api/system.speech.recognition.speechrecognitionengine?view=net-9.0-pp) design

### Usage Syntax

```markdown

using var sre = new SpeechRecognitionEngine(new System.Globalization.CultureInfo("en-US"));
sre.SpeechRecognized += OnSpeechRecognized;

sre.SetInputToDefaultAudioDevice();

void OnSpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
//got the text result
}
```

### Drawbacks

_No response_

### Alternatives

_No response_

### Unresolved Questions

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.