Skip to main content

Cambridge Dictionary Audio CLI

Download American and British pronunciation recordings from Cambridge Dictionary without a desktop interface. US pronunciation and English interface messages are the defaults. Python 3.10–3.15 is supported on Windows, macOS and Linux.

Installation

uv tool install cambridge-dictionary-audio

Alternatively, use pipx install cambridge-dictionary-audio or install with pip inside a virtual environment. This package contains the CLI only and does not install Qt. Desktop installers are available from the GitHub releases.

Usage

cambridge-audio hello
cambridge-audio "good morning" --accent both --output-dir audio
cambridge-audio hello --lang ru --translation russian
cambridge-audio --help
cambridge-audio
cambridge-audio --lang ru

Files are saved in downloads/ under the current working directory. Use --output-dir to change the destination and --overwrite to replace existing files. Completed MP3s are published atomically; an interrupted write leaves no partial recording. Running cambridge-audio without a word opens the terminal workspace. python -m cambridge_audio is also supported.

Terminal workspace

The workspace has a searchable library and a recording detail panel. Narrow terminals use a vertical layout. Enter in search downloads a word or opens saved audio offline; Enter in the library plays the selected recording. Selecting both accents downloads only missing files. Download again asks before replacing audio. Downloads and playback run in the background so navigation remains responsive.

  • Tab / Shift+Tab: navigate controls; Up / Down: select a recording.
  • Ctrl+L: search; Ctrl+P: play/stop; Ctrl+R: refresh the library.
  • Ctrl+S: settings; F1: help; Ctrl+Q: quit.
  • Ctrl+C: cancel the download, stop playback or quit when idle. The current request finishes before cancellation, and completed files are retained.

Settings offer English/Russian interface messages, light/dark themes, accent, destination, translation language, autoplay and phrase synthesis. They apply to the current session; use CLI flags for future launches. The translation checkbox shows and hides cached translations immediately. When missing, a translation is fetched in the background and cached without downloading audio again. Russian is the default translation language; settings or --translation override it. The recording panel shows loading and request errors. Metadata is stored in JSON files beside MP3s and is shared with the desktop app. Existing MP3s without metadata are also recognized. Empty files are ignored. Translation metadata includes its language: changing languages refreshes the translation. Older metadata without a language is refetched when translation is enabled. Audio is retained throughout this operation.

--plain uses undecorated output and a line-based interactive prompt with /m (toggle playback), /r (delete this session's downloads and metadata), and /q (quit). This fallback is automatic for redirected input/output and TERM=dumb. --tui requires an interactive terminal explicitly. --version prints the installed version. NO_COLOR disables colours. One-shot commands retain plain output in pipes and add a download indicator and definition card in a terminal.

Textual provides the terminal interface without Qt, a graphical display server or special fonts. The same package supports Windows, macOS and Linux.

FFmpeg is optional and required only for combining a phrase from individual word recordings. CLI playback uses afplay on macOS, ffplay on Linux, and the Windows default audio application on Windows. The terminal can stop its player on macOS and Linux; on Windows, use the external application to stop playback. Playback is enabled by default in interactive mode and can be requested for a single download with --play.

License and attribution

This fork is distributed under Apache-2.0. Code inherited from astrosander/cambridge-dictionary-audio retains its MIT license and copyright notice. The distribution includes both licenses and the attribution notice.

The project is independent of Cambridge University Press & Assessment. Downloaded recordings remain subject to their owners' rights and Cambridge's website terms.

Metadata

Release files for cambridge-dictionary-audio 0.2.1

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

Source distribution (sdist)

Source distribution for cambridge-dictionary-audio 0.2.1
File Size Uploaded
cambridge_dictionary_audio-0.2.1.tar.gz 41.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cambridge-dictionary-audio 0.2.1
File Interpreter ABI Platform
cambridge_dictionary_audio-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 74.9 kB

Release files / cambridge_dictionary_audio-0.2.1.tar.gz

Download URL cambridge_dictionary_audio-0.2.1.tar.gz
Size 41.2 kB
Tags Source
SHA-256 checksum
How to use checksums
892e7218ff21f8b3d25db5335af0ba1351e712cd8791b6a7e301f7d46d912682
BLAKE2b-256 checksum
How to use checksums
00673f01cbafd256becee17ee3c90b09ccd3a1cf8e5f2733a195e3f409c86eb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / cambridge_dictionary_audio-0.2.1-py3-none-any.whl

Download URL cambridge_dictionary_audio-0.2.1-py3-none-any.whl
Size 33.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a03c1248198cac24e84ac3b77730a7a74b222be242379edfd954c51a02f9e312
BLAKE2b-256 checksum
How to use checksums
c777dc7cd06d4422eb0208b138ec127c48268944b5043b0da64dea07fc609686
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 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