Skip to main content

Cued Speech

Generate French cued speech videos (a hand is added next to the speaker's face) and decode cued speech videos into subtitles.

Install

Requires Python 3.11 and pixi (used to install the Montreal Forced Aligner).

mkdir cued-speech-env && cd cued-speech-env
pixi init
pixi add "python==3.11" montreal-forced-aligner=3.3.4
pixi run python -m pip install cued-speech-fr
pixi shell

Generate a cued speech video

# Text transcribed automatically with Whisper
cued-speech generate video.mp4 --output_path out.mp4

# Or give the text yourself
cued-speech generate video.mp4 --skip-whisper --text "Bonjour tout le monde" --output_path out.mp4

Nothing else to download: the hand images ship with the package and the French MFA models are downloaded automatically on first use.

Useful options: --timing-model [rules|revised|attina|base], --no-morphing, --no-transparency, --debug-landmarks (see cued-speech generate --help).

From Python:

from cued_speech import generate_cue

generate_cue(
    text="Bonjour tout le monde",  # or None to transcribe with Whisper
    video_path="video.mp4",
    output_path="out.mp4",
    config={"skip_whisper": True},
)

Decode a cued speech video

cued-speech download-data   # models and test videos, into ./download
cued-speech decode --video_path video.mp4

Credits

Hand positions, angles and transition timing follow the models published by Auto-CS (B. Bigi, CNRS-LPL) and V. Attina (2005), reimplemented independently.

License

MIT. Contact: boubasow.pro@gmail.com

Metadata

Release files for cued-speech-fr 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cued-speech-fr 0.5.0
File Size Uploaded
cued_speech_fr-0.5.0.tar.gz 603.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cued-speech-fr 0.5.0
File Interpreter ABI Platform
cued_speech_fr-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / cued_speech_fr-0.5.0.tar.gz

Download URL cued_speech_fr-0.5.0.tar.gz
Size 603.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6bd4bdbbd360c7f2d4fd6bbcc74d828f88ef9b98d443556f10b37df04ba11a67
BLAKE2b-256 checksum
How to use checksums
55c449c215f9c36fee2228782953c9549efea1497524021e3bd222e825d7a331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / cued_speech_fr-0.5.0-py3-none-any.whl

Download URL cued_speech_fr-0.5.0-py3-none-any.whl
Size 606.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd92c3b9675f2e8792b6171d9511a565f10eab6d7462dba2766710719568c65f
BLAKE2b-256 checksum
How to use checksums
445a08f9281cb4c435962dc1ecfec88d1c5d7eb08a318b3ca2aabb0adffa03f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page