Skip to main content

A simple CLI tool focused on quickly and accurately converting audio files into text.

Project description

TranscribeASR

TranscribeASR (TASR, pronounced "Tay-ser") is a simple CLI based on ASR technology, focused on quickly and accurately converting audio files into text, helping users improve their work efficiency.

Installation

Install via pip:

pip install tasr

Dependencies

Install dependencies:

pip install -r requirements.txt

Install Demucs (Optional, only required for noise reduction):

pip install demucs

Usage

Basic Usage

tasr --input <audio_file_path> [--output <output_text_file_path>] [--language <language>] [--denoise]
Parameter Required Description
--input Yes Path to the input audio file.
--output No Path to the output text file. If not specified, it defaults to the same name as the input audio file with a .txt extension.
--language No Specify the language for recognition (e.g., 'en', 'zh', 'yue', 'ja', 'ko'). Default is 'auto' (automatic detection).
--denoise No Whether to perform noise reduction on the audio. Disabled by default.

Examples

Basic Speech Recognition

Perform speech recognition on the audio file example.wav and save the result as example.txt:

tasr --input example.wav

Specify Output File

Perform speech recognition on the audio file example.wav and save the result as output.txt:

python cli.py --input example.wav --output output.txt

Notes

Supported audio formats depend on the capabilities of soundfile and demucs, typically including .wav, .flac, .mp3, etc. For best results with noise reduction, it is recommended to use .wav format.

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

tasr-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tasr-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file tasr-0.1.0.tar.gz.

File metadata

  • Download URL: tasr-0.1.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for tasr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 60738b5964375b4a6ed6614ab59477326ef996bee740203808d755b4c6573e7f
MD5 e9c44ff128e830fb77ea50a9bf4038c2
BLAKE2b-256 c1595d26b8fde97e9a1d33ebf71a405115ac65756bf3dbc962283b285f7a0d6a

See more details on using hashes here.

File details

Details for the file tasr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tasr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for tasr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a6fda0445c77244c6658acb33c9658ec0b676ce911a73d205046dde69f806d2
MD5 d57fda8940dfa8a4d65d6e1739e66fb8
BLAKE2b-256 5f83473e51568d654a3230716311d0de1385e41aaf573e25222a77ee5304f056

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page