Skip to main content

A tool for transcribing audio files using OpenAI's API

Project description

Audio Transcript

Audio Transcript is an advanced tool that transcribes audio files using OpenAI's API. It not only segments the audio for manageable processing but also offers features like silence removal and speed adjustment to minimies the cost of transcribing. After processing, it seamlessly concatenates the transcriptions to deliver a complete and coherent transcript of the entire audio file. Designed for high efficiency, it facilitates the rapid transcription of extensive audio files by optimizing the transcription process. It utilizes the OpenAI API for precise transcription and accommodates a wide range of audio formats.

Installation

To get Audio Transcript up and running, you've got two straightforward options: pip install or direct setup. Pick the one that suits you best.

Option 1: Pip Install

Fire up your terminal and run:

pip install audio_transcript

This command fetches Audio Transcript from PyPI and installs it along with all its dependencies. Easy peasy.

Option 2: Direct Setup

Prefer to do things manually? No problem. Here's how:

First, clone the repository to your local machine:

git clone https://github.com/gsusI/audio_transcript.git

Next, dive into the cloned directory:

cd audio_transcript

And kick off the setup script:

python setup.py install

This installs all the necessary dependencies and gets the tool ready for action.

Post-Installation Goodies

Once you've got Audio Transcript installed, you can supercharge your command-line experience with autocomplete. Just follow the on-screen instructions post-installation. They'll walk you through setting up autocomplete for bash, zsh, or PowerShell. It's a game-changer, trust me.

Usage

To use Audio Transcript, you need to provide the source audio file and optionally specify parameters such as the directory for audio segments, segment duration, overlap duration, and the output file for the transcript. The tool comes with a command-line interface that is fully documented. To see all available options, run:

transcribe-audio --help

A typical command might look like this:

transcribe-audio --source_audio_file path/to/your/audio/file.mp3 --audio_segment_dir path/to/segment/dir --segment_duration 300 --overlap_duration 30 --remove_silences --remove_silences_threshold 0.5 --audio_speed 1.0 --output_file path/to/output/transcript.txt

To ensure the best balance between transcription speed and accuracy, it's crucial to find the optimal audio playback speed. While increasing the speed can reduce transcription time and potentially minimize costs, setting the speed too high may lead to inaccurate transcriptions or even nonsensical results. To determine the most effective speed for your audio files, follow these steps:

  1. Use the --test and --test_chunks options set to 1 to transcribe only the first chunk of your audio at various speeds. This approach allows you to compare the accuracy of transcriptions at different speeds without processing the entire file.

  2. Set the --segment_duration to a short duration, such as 30 seconds, for these tests. This ensures that the test runs quickly and focuses on a manageable portion of the audio.

  3. Start by running the transcription at the default speed (1.0x). Use the following command as a template, adjusting the --source_audio_file and --output_file paths as necessary.

  4. Once the transcription is complete, review the results and assess the accuracy of the transcription. If the results are satisfactory, you can proceed with the full transcription at the same speed. If not, you can adjust the speed and repeat the process until you find the optimal speed for your audio file.

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

transcraipt-0.1.76.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

transcraipt-0.1.76-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file transcraipt-0.1.76.tar.gz.

File metadata

  • Download URL: transcraipt-0.1.76.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for transcraipt-0.1.76.tar.gz
Algorithm Hash digest
SHA256 4d5e0e1993d5caa444535e6264206f7d757a1042d4405684d8a42f2c31a820da
MD5 fd1efd8e9b0420541a9f979f79e82f00
BLAKE2b-256 38d0db1ff06934ce047740662f9579c7264f891c825f8d21153f3de199e80b3d

See more details on using hashes here.

File details

Details for the file transcraipt-0.1.76-py3-none-any.whl.

File metadata

  • Download URL: transcraipt-0.1.76-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for transcraipt-0.1.76-py3-none-any.whl
Algorithm Hash digest
SHA256 3b10581a21a16fe0a2d8993c1644d3701aa1843b5c00785d756613e7a9e31cae
MD5 85e671885024ed86d0c2cedbc5342750
BLAKE2b-256 46b16213a095f2ccf8eeb2f6ac53005ec41f4cdcd897d31dec9fac54a545c484

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