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.4.tar.gz (5.1 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.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: decapi-1.0.4.tar.gz
  • Upload date:
  • Size: 5.1 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.4.tar.gz
Algorithm Hash digest
SHA256 cbe37bd02cbeddd9dc2d3704a2aa99ef1dbc181162a32c5c754db7292d0666c7
MD5 c991fca07c997b39ba75a08008373ce5
BLAKE2b-256 9b4f5b524468de669dbfc64ab7f04901464f9b727ccd15c33e6f5af3b81e035b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: decapi-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 44849782d9a610b8c6d45df5726c31389a309711f06590ea234225f8104dfa32
MD5 cd03247bc62eb1035dfe1ce2e7b372df
BLAKE2b-256 aa6840ccfe0c523bd389469e9aca4a29563f4355a2d089568608df56ec31dbac

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