Efficient local speech-to-text conversion with multiple output formats.
Project details
earshot is a powerful offline speech-to-text library and command-line tool that utilizes whisper.cpp for accurate transcription. Supporting both CPU and CUDA acceleration, it offers flexibility with various output formats like TXT, SRT, VTT, and JSON, making it an ideal choice for local audio processing needs.
earshot is a powerful local speech-to-text library and command-line interface (CLI) constructed with whisper.cpp. Designed for offline use, this tool provides support for CPU and CUDA acceleration, allowing efficient speech transcription without internet connectivity.
large-v3-turbo, and additional models can be easily managed through the command line.To initiate the CLI and transcribe an audio file, use the following commands:
cmake -B build -DCMAKE_BUILD_TYPE=Release -DEARSHOT_CUDA=ON
cmake --build build --parallel 2
./build/earshot --list-models
./build/earshot -l en --format txt,srt lesson.mp3
earshot --helpearshot --device cpu -m small.en interview.m4aearshot --translate -l fr --format vtt talk.wavearshot -p --stdout podcast.mp3Developers can leverage the stable C API or a RAII C++17 wrapper for integration into their applications:
#include <earshot/earshot.hpp>
earshot::Options options;
options.model_path = "/models/ggml-large-v3-turbo.bin";
options.language = "en";
earshot::Transcriber transcriber(options);
const earshot::Result result = transcriber.transcribe("meeting.mp3");
std::cout << result.text() << '\n';
Built on a foundation of ease and efficiency, earshot strives to deliver high-quality speech-to-text transcription for a variety of applications, from personal projects to professional use. Contributions are welcomed, and users are encouraged to explore the robust features this library offers.
Comments
0Start the conversation
Share the first comment.