Speaking Clock Detection
This tool can be used to detect on which channel a speaking clock is present. It only works on stereo audio files, where either the left or right channel contain only the speaking clock. This tool has only been tested with the French official Speaking Clock.
Installation
pip3 install speaking-clock-detection
Usage
The help is available with the following command:
speaking_clock_detection --help
options:
-h, --help show this help message and exit
-m MEDIA, --media MEDIA
full path to media to analyze
-t TMPDIR, --tmpdir TMPDIR
Temporary directory used to store intermediate files. Should be a fast access
directory such as Ram Disk or SSD hard drive. Default value: /dev/shm (linux ram
disk)
-o OUTPUT, --output OUTPUT
output file for the result. Default value: /dev/stdout.
-f FFMPEG, --ffmpeg FFMPEG
Full path to ffmpeg binary. If not provided, this will used default binary
installed on the system. This program has been tested with ffmpeg version
2.8.8-0ubuntu0.16.04.1
Example
The tool can be used like this:
speaking_clock_detection \
--media /file/to/detect/speaking_clock.wav
It will output one of the three following values:
SPEAKING_CLOCK_TRACKfollowed by the channel track id (typically 0 or 1)SPEAKING_CLOCK_NONEif no speaking clock has been detectedSPEAKING_CLOCK_MULTIPLEif multiple speaking clocks have been detected (this is usually an error)
Python Usage
Python example using the WavExtractor :
from inaudible import WavExtractor
wav_file = "/file/to/detect/speaking_clock.wav"
output_file = "/outputpath/speaking_clock.wav"
# init the speaking clock detection by setting `detect_clock=True`
wext = WavExtractor(
detect_clock=True,
detect_clock_dur=60*10,
detect_phase_dur=120
)
# detect the speaking clock and export the right channel
dret = wext(wav_file, output_file)
# print the result
print(dret)
Metadata
Release files for speaking-clock-detection 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| speaking_clock_detection-1.1.2.tar.gz | 9.0 kB | With provenance | Details for speaking_clock_detection-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| speaking_clock_detection-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for speaking_clock_detection-1.1.2-py3-none-any.whl |
Total release size: 19.3 kB
Release files / speaking_clock_detection-1.1.2.tar.gz
| Download URL | speaking_clock_detection-1.1.2.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdb17faf71135dc77551627629c221b8ca89220464db734aaef6371534d93e4c
|
|
BLAKE2b-256 checksum How to use checksums |
aa0a74a355ad3965c1216bbb2fbd3ae8bb9785a014c5bdbb0b728592b13ceee1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Sep 17, 2025.
Transparency logRelease files / speaking_clock_detection-1.1.2-py3-none-any.whl
| Download URL | speaking_clock_detection-1.1.2-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7c7106fc3ac0dd99ab736b5cc5e6dd4bffd0220f02e105b5590cd6e460345cf
|
|
BLAKE2b-256 checksum How to use checksums |
193e7f3272cd50c93cd91bcd5050d2f38c170fc7567a5a19e401e4de5c8bb14a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Sep 17, 2025.
Transparency logSecurity for speaking-clock-detection 1.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for speaking_clock_detection-1.1.2.tar.gz
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 Sep 17, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.