Skip to main content

An API for DECTalk

Project description

DECAPI (should've chosen a better name)

A simple DECTalk API.

(you have to supply your own path to the say executable)

Default voice: Perfect Paul

Installation

pip install decapi

Usage

Speak(ing)

import decapi
decapi.dectalkpath="your/path/to/dectalk/say"
decapi.init() 
decapi.say("Hey there")

You can design your own voice using the Voice class.

ap - Average pitch, in Hz
as - Assertiveness, in %  
b4 - Fourth formant bandwidth, in Hz  
b5 - Fifth formant bandwidth, in Hz 
bf - Baseline fall, in Hz  
br - Breathiness, in decibels (dB) 
f4 - Fourth formant resonance frequency, in Hz 
f5 - Fifth formant resonance frequency, in Hz 
hr - Hat rise, in Hz 
hs - Head size, in % 
la - Laryngealization, in % 
lx - Lax breathiness, in % 
nf - Number of fixed samples of open glottis 
pr - Pitch range, in % 
qu - Quickness, in % 
ri - Richness, in % 
sm - Smoothness, in % 
sr - Stress rise, in Hz 
sx - Sex 1 (male) or 0 (female)

Before you contact me, I do not respond to your emails. Create an issue instead in the currently non-existent GitHub repository if you need help.

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

decapi-1.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

decapi-1.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file decapi-1.0.1.tar.gz.

File metadata

  • Download URL: decapi-1.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for decapi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 278bbfcd99583849e68dccb41012c668a29c3392afc5d11639fb2d0a3ddf29a6
MD5 9c01f64eaa7c42f35f44c9ec76781ab8
BLAKE2b-256 909aaba60c8a47d9d5edc4c22faa2b5a5cd7075f0909257efa693fcb0087c04c

See more details on using hashes here.

File details

Details for the file decapi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: decapi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for decapi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c65556c9fbb70db07cb103d99b7b0a76a8ceaa8a018255f3a6422df03a98b426
MD5 a47bd05d41f57ef3a82b496a7d72048c
BLAKE2b-256 61326213a3a0c2b2541494b74dad10510e3491cefaa3a7c5dd36fa014ae481cd

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