Skip to main content

A prosody processing library for TTS synthesis.

Project description

prosody_synthesizer

A prosody processing library for TTS synthesis on macOS that computes dynamic pitch, rate, and volume adjustments based on sentiment and energy analysis. This library relies on the system say command, which is available only on macOS.


Features

  • Sentiment and Energy Analysis: Uses NLTK’s VADER and basic lexical heuristics to derive a sentence‐level “energy” and sentiment (compound) score.
  • Dynamic Shifts: Adjusts speech rate and pitch dynamically within each phrase.
  • macOS say Integration: Outputs text with inline TTS commands (e.g. [[rate]], [[pbas]]), then invokes say.
  • Object-Oriented Design: Encapsulated in a ProsodySynthesizer class for easy usage.

Requirements

  1. macOS
    This library uses the built-in say command, so it won't work on Windows or Linux unless you adapt those TTS calls.

  2. Python <3.12 (recommended)

    • Although no strict upper-bound is enforced, note that spaCy may not yet support Python 3.13.
    • If you encounter issues on future Python versions, consider using 3.6–3.12.
  3. Dependencies

    • nltk
    • numpy
    • spacy

Required Data Downloads

Download Required Resources

Before using prosody_say, ensure that the necessary NLTK and spaCy resources are installed. You can do this by running:

prosody-download-resources

Installation

  1. Install from PyPI :
    pip install prosody_synthesizer
    

2. **Install from source**:
   ```git clone https://github.com/yourusername/prosody_synthesizer.git
   cd prosody_synthesizer
   pip install .
   ```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prosody_say-0.1.4.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prosody_say-0.1.4-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file prosody_say-0.1.4.tar.gz.

File metadata

  • Download URL: prosody_say-0.1.4.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for prosody_say-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b87fa88caea531992255e9db717e4e4c02045e18b97670842c5528e66e7f9a21
MD5 07914ae2289a4defb704cc6876b097bf
BLAKE2b-256 98e7738f5c7c8ea75a694a35d59e65490af461d35e67ce002118bda047fdde8a

See more details on using hashes here.

File details

Details for the file prosody_say-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: prosody_say-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for prosody_say-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d21d0f831e042e54021176932795f0040217a8c82bfffdeb1771cc94c577972a
MD5 9230678b40bcd9fd555277b112c6b72a
BLAKE2b-256 35f4c95814cd24f381e29565e55d162218d82072035f290b5c57da15869a465e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page