Skip to content

feat(text-to-speech): add SystemTextToSpeech provider - #770

Merged
haiphucnguyen merged 1 commit into
mainfrom
feature/text-to-speech-system
Oct 17, 2026
Merged

haiphucnguyen merged 1 commit into
mainfrom
feature/text-to-speech-system

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

Summary

  • add SystemTextToSpeechService and SystemTextToSpeechFactory for OS TTS
  • register SYSTEM provider in VoiceServiceRegistry
  • expose SYSTEM in settings and config with i18n support
  • add unit tests for SystemTextToSpeechService
  • update AppConfig documentation to include SYSTEM provider

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

- add SystemTextToSpeechService and SystemTextToSpeechFactory for OS TTS
- register SYSTEM provider in VoiceServiceRegistry
- expose SYSTEM in settings and config with i18n support
- add unit tests for SystemTextToSpeechService
- update AppConfig documentation to include SYSTEM provider
Copilot AI balanced review requested due to automatic review settings October 17, 2026 02:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

internal fun windowsRate(speed: Double): Int {
val clampedSpeed = speed.coerceIn(0.25, 4.0)
val rate = if (clampedSpeed <= 1.0) {
(clampedSpeed - 1.0) / (1.0 - 0.25) * 10
val rate = if (clampedSpeed <= 1.0) {
(clampedSpeed - 1.0) / (1.0 - 0.25) * 10
} else {
(clampedSpeed - 1.0) / (4.0 - 1.0) * 10
@haiphucnguyen
haiphucnguyen merged commit 4947b76 into main Oct 17, 2026
10 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/text-to-speech-system branch October 17, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants