Whisper SPLN is a remote service that allows a user to transcrive audio files to text using whisper from openai.
Project description
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
Project details
Release history Release notifications | RSS feed
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 whisper_spln-0.5.tar.gz.
File metadata
- Download URL: whisper_spln-0.5.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
723531e96d707345cb046ec74c4fb5ba7934b298fb9b0be38b0f625accb4d76c
|
|
| MD5 |
33eefd01aa08cb0703ef149faba0bc7f
|
|
| BLAKE2b-256 |
a11d5599ec7064d1ab9a82ff4cedc9357b83aafd857b464fb758ca678cb6d930
|
File details
Details for the file whisper_spln-0.5-py2.py3-none-any.whl.
File metadata
- Download URL: whisper_spln-0.5-py2.py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd8bf0de8640e6facf873e7177bf8c29c2dcdffdbc201857db66ea98b9e37548
|
|
| MD5 |
0568bd1bb27e4938bac9d251d97d6026
|
|
| BLAKE2b-256 |
b0ceb151930962c8f25b69d883a8a8da9314743bb6c53226b6d9a16783236f37
|