Skip to main content

A prosody processing library for TTS synthesis with say command.

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.2.tar.gz (18.4 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.2-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prosody_say-0.1.2.tar.gz
  • Upload date:
  • Size: 18.4 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.2.tar.gz
Algorithm Hash digest
SHA256 62c5b81c66a5e3228f5d01d9a106a15bce841f5accacbd82e4e86b406907220a
MD5 df43b96d1cb4e565083467f4902ab1d3
BLAKE2b-256 4206fdc7067f27878259450daf32c323765281f376b3ba7edbc64b97cf3f5225

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prosody_say-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6009fd7d435892d3e594fcd2683c42ff10ab0c989a5028d4ecba9948a9645f9a
MD5 762ba32b754248bc377c582ab8e33c9c
BLAKE2b-256 9ead3c5fdeab965ae0f5971299c4db5273aeeaea480b9824ead55663f7755f28

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