Skip to main content

Whisper

Whisper SPLN is a remote service that allows a user to transcrive audio files to text using whisper from openai. The user can make various requests to the server, such as transcribing a file, getting the status of the queue, and getting the logs of the application. It is also possible to translate the transcrived text to a language chosen by the user.

Possible Commands: Transcribe: transcribes an audio file to text. Variables: input_file (obrigatory): path for the audio file to transcrive. dest (-d, --dest, optional): defines the path for the output file. inputLang (-il, --inputLang, optional): defines the language of the input file if not defined, the whisper assumes the language. outputLang (-ol, --outputLang, optional): defines the language of the output text, if not defined the output language is the one used in the audio file.

queue (-q, --queue, optional): shows the audio conversion queue.
logs (-l, --logs, optional): shows the execution logs.
clearLogs (-cl, --clearLogs, optional): clear the execution logs.

Example

whisper_spln input_file
whisper_spln input_file -d output_file -il input_language -ol output_language

Source Code

To work whisper will do 1 of 2 things:

  • whisper will first create 2 threads, one for the listener and one for the worker.
  • If the 2 threads are already running, whisper will send the request to the queue.

Files:

  • listener.py -> listener class that listens for requests and sends them to the queue.
  • lockedQueue.py -> locked queue class that stores the requests whit locks to secure the access from both threads.
  • worker.py -> worker class that gets the requests from the queue and executes them.
  • main.py -> argparse of the service, it has different classes to handle different arguments
  • parserTasks.py -> functions that handle different arguments of the argparse
  • startThreads.py -> tries to access or initializes the threads that will run Whisper

Metadata

Release files for whisper_spln 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whisper_spln 0.5
File Size Uploaded
whisper_spln-0.5.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for whisper_spln 0.5
File Interpreter ABI Platform
whisper_spln-0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 15.9 kB

Release files / whisper_spln-0.5.tar.gz

Download URL whisper_spln-0.5.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
723531e96d707345cb046ec74c4fb5ba7934b298fb9b0be38b0f625accb4d76c
BLAKE2b-256 checksum
How to use checksums
a11d5599ec7064d1ab9a82ff4cedc9357b83aafd857b464fb758ca678cb6d930
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / whisper_spln-0.5-py2.py3-none-any.whl

Download URL whisper_spln-0.5-py2.py3-none-any.whl
Size 9.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
cd8bf0de8640e6facf873e7177bf8c29c2dcdffdbc201857db66ea98b9e37548
BLAKE2b-256 checksum
How to use checksums
b0ceb151930962c8f25b69d883a8a8da9314743bb6c53226b6d9a16783236f37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page