feat(android): add a speech model on genai-text-to-speech

Open
#362 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
android, react-native, typescript
Domain
ai, mobile-dev

Research direction

Inspect the SpeechSynthesizer class in the genai-text-to-speech package and the SpeechModelV4 interface in the AI SDK. First read the existing synthesize flow and how voices are listed via getSupportedVoices. Done means the byte output format is documented or encoded via ML Kit and exposed as a speech model on Android.

Written by the indexing model from the issue text.

Description

Blocked enhancement

genai-text-to-speech 1.0.0-alpha1 has SpeechSynthesizer.synthesize, which emits AudioAvailable(byte[]) chunks, plus voices (getSupportedVoices), status and download. It could back an AI SDK SpeechModelV4.

Left out of the first version because the audio format of the bytes is not documented, and the provider doesn't add its own headers or encoding. Needs: the documented output format (or an encoded output option from ML Kit), and a device that has the voices.

Dominant language
TypeScript
Stars
1.4k
Forks
64
Avg merge
11h 8m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from callstackincubator/ai

All issues in callstackincubator/ai

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.