Skip to content

feat: Inter-Sentence Pause Interval & Speech Pacing ControlsΒ #1201

Description

@hrshjswniii

πŸš€ Program

GSSoC

✨ Feature Description

Add configurable inter-sentence pause timing (0ms to 2000ms delay) and speech pacing controls to voiceSettings.js and VoiceQuickSettings.jsx.

πŸ€” Problem It Solves

Synthesized speech engines often pronounce multi-sentence paragraphs back-to-back without natural pauses, making it difficult for listeners (especially elderly or hearing-impaired individuals) to process complex AAC messages.

πŸ’‘ Proposed Solution

  1. Add sentencePauseMs: 500 to DEFAULT_VOICE_SETTINGS in voiceSettings.js.
  2. Render an Inter-Sentence Pause (ms) slider (0ms – 2000ms) in VoiceQuickSettings.jsx.
  3. In useTTS.js, split multi-sentence input (., !, ?) and insert configurable timing pauses between speech utterance chunks.

πŸ”„ Alternatives Considered

Manual comma insertions by the user, which adds friction to speech composition.

πŸ“Έ Mockups / Examples

A slider in Voice Quick Settings titled "Inter-Sentence Pause" with range 0ms to 2000ms.

βœ… Acceptance Criteria

  • sentencePauseMs setting persists in localStorage.
  • Multi-sentence text inputs pause for the selected duration between sentences during synthesis playback.
  • Slider displays live millisecond readout in VoiceQuickSettings.jsx.

πŸ“‹ Additional Context

Improves speech naturalness and listener comprehension.

🌱 Contributor Checklist

  • I am participating via GSSoC
  • I have read the contribution guidelines
  • I checked for existing issues before creating this

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions