Skip to content

Add speed and pitch settings to PublicationSpeechSynthesizer - #928

Merged
mickael-menu merged 2 commits into
developfrom
feature/tts-speed-pitch
Oct 23, 2026
Merged

mickael-menu merged 2 commits into
developfrom
feature/tts-speed-pitch

Conversation

@mickael-menu

Copy link
Copy Markdown
Member

Added

Navigator

  • PublicationSpeechSynthesizer.Configuration has new speed and pitch properties.

Changed

Navigator

  • Changing PublicationSpeechSynthesizer.config while playing restarts the current utterance with the new configuration, instead of applying it from the next utterance.

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.

🟡 Changes recommended

Rapid configuration changes can leave queued speech tasks suspended indefinitely, retaining the synthesizer and publication.

1 open issue
What changed in this PR

Adds configurable speech speed and pitch to the toolkit’s publication text-to-speech support, with controls in the TestApp.

Changes:

  • Passes speed and pitch settings through to the speech engine, including rate interpolation and pitch clamping.
  • Restarts the current utterance when configuration changes during playback.
  • Updates the user guide and changelog.
File Description
TestApp/​Sources/​Reader/​Common/​TTS/​TTSView.swift Adds speed and pitch controls and enlarges the settings panel.
Sources/​Navigator/​TTS/​TTSEngine.swift Adds speed and pitch to speech requests.
Sources/​Navigator/​TTS/​PublicationSpeechSynthesizer.swift Exposes settings and restarts speech on configuration changes.
Sources/​Navigator/​TTS/​AVTTSEngine.swift Converts speed multipliers to speech rates and applies pitch.
docs/​Guides/​TTS.md Documents settings and immediate restart behavior.
CHANGELOG.md Records the new settings and playback behavior.

Review effort: Balanced

@mickael-menu
mickael-menu merged commit e20d5cf into develop Oct 23, 2026
5 checks passed
@mickael-menu
mickael-menu deleted the feature/tts-speed-pitch branch October 23, 2026 15:58
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