Latecript: transcript and translate audio from you input audio devices in real-time using Speechmatics API.
Project description
Latecript
Latecript is a Python application that transcribes and translates audio from your input devices in real-time using the Speechmatics API. The application provides a Textual-based TUI for an interactive experience.
(Developped quick and dirty with the help of Copilot)
Features
- Real-Time Transcription: Capture audio and transcribe speech in real-time.
- Translation: Translate transcribed text into different languages.
- TUI Interface: Interactive Textual UI for settings and displaying logs.
- Configurable Settings: Read credentials and configuration from a local JSON file.
Requirements
- Python 3.12 or above
- UV (for dependency management)
Getting your audio output as a usable input.
MacOs
You can use BlackHole for audio loopback. It can be installed via brew:
brew install blackhole-2ch
While using the app, chose "BlackHole 2ch" as your sound output. In order to still listen to what your mac sound output you can define a multi-output device (with you favourite output device + BlackHole 2ch) in the Audio MIDI setup.
Speechmatics API key
You can generate your speechmatics API key from your user account in speechmatics.
Usage
To run Latecript, execute:
uv run latecript
You can provide an alternative settings file via the command line:
uv run latecript --settings_file /path/to/your/settings.json
The settings file is a json file with the following structure:
{
"speechmatics_api_key": "Your Speechmatics API Key",
"output_device": "Blackhole 2ch",
"transcription_language": "fr",
"translation_language": "en"
}
License
This project is licensed under the MIT License. See LICENSE for details.
Contributing
Contributions are welcome! Please open issues and submit pull requests for improvements and bug fixes.
This app is not meant to be maintained and was developped in a quick and dirty way.
Acknowledgements
- Speechmatics for the API and SDK.
- Textual for the TUI framework.
- BlackHole for audio loopback driver for mac.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file latecript-0.1.5.tar.gz.
File metadata
- Download URL: latecript-0.1.5.tar.gz
- Upload date:
- Size: 162.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5c41193f2ed8e3f63a89a63119be6639a706f0fb71bc77fe21d33e3ce9694fb
|
|
| MD5 |
1683f03e1ff0912e59de74df149ffd11
|
|
| BLAKE2b-256 |
7d1c21a401f910b731d80db8ff1853528fb6a6c64f0d20242eb23f4123109e9a
|
Provenance
The following attestation bundles were made for latecript-0.1.5.tar.gz:
Publisher:
release.yaml on AElOuassouli/latecript
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
latecript-0.1.5.tar.gz -
Subject digest:
a5c41193f2ed8e3f63a89a63119be6639a706f0fb71bc77fe21d33e3ce9694fb - Sigstore transparency entry: 174667094
- Sigstore integration time:
-
Permalink:
AElOuassouli/latecript@1b7fa29a9490cb8d661dadfd29a862eb67cc6ca6 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/AElOuassouli
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@1b7fa29a9490cb8d661dadfd29a862eb67cc6ca6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file latecript-0.1.5-py3-none-any.whl.
File metadata
- Download URL: latecript-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f351769975274cf45371f00ae63c2ea1f845218cff5626363dfb1de266e645c8
|
|
| MD5 |
6d3ba85eb5c79588f082273fa0d017b8
|
|
| BLAKE2b-256 |
11a407363f9716e8efe2db9ac6e7e1ef11523f2e91027897be74f64ae21dd11e
|
Provenance
The following attestation bundles were made for latecript-0.1.5-py3-none-any.whl:
Publisher:
release.yaml on AElOuassouli/latecript
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
latecript-0.1.5-py3-none-any.whl -
Subject digest:
f351769975274cf45371f00ae63c2ea1f845218cff5626363dfb1de266e645c8 - Sigstore transparency entry: 174667096
- Sigstore integration time:
-
Permalink:
AElOuassouli/latecript@1b7fa29a9490cb8d661dadfd29a862eb67cc6ca6 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/AElOuassouli
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@1b7fa29a9490cb8d661dadfd29a862eb67cc6ca6 -
Trigger Event:
release
-
Statement type: