Commit 78db189
committed
feat!: Add time stamping to speech to text (software-mansion#742)
<!-- Provide a concise and descriptive summary of the changes
implemented in this PR. -->
- [x] Yes
- [ ] No
This PR introduces breaking change as now the return type from
`transcribe` and `stream` methods are based on `TranscriptionResult`
type. Also now there is no commited / nonCommited properties of hook.
`stream` now is async generator.
- [ ] Bug fix (change which fixes an issue)
- [x] New feature (change which adds functionality)
- [ ] Documentation update (improves or adds clarity to existing
documentation)
- [ ] Other (chores, tests, code style improvements etc.)
- [x] iOS
- [x] Android
* Run demo app in `apps/speech` and run transcription for both time
stamping and regular mode (both from url and from real time audio to
test both `transcribe` and `stream` methods).
* Run voice chat in `apps/llm` to check if transcription appears. *NOTE*
This example seems to be a bit buggy.
* You need to run this on **android device** since this PR also fixes
`Speech to Text` demo app in case of using physical android device.
Earlier, required permissions for microphone weren't granted and the
example effectively didn't work.
* Check that documentation for modified sections is updated and that api
reference is correct as well.
* Run tests and check that they compile and work as previously.
<!-- Add screenshots here, if applicable -->
<!-- Link related issues here using #issue-number -->
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation accordingly
- [x] My changes generate no new warnings
<!-- Include any additional information, assumptions, or context that
reviewers might need to understand this PR. -->1 parent 38af3ed commit 78db189
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
0 commit comments