Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/musatahawar/video-transcriber
This script uses the Whisper library to transcribe text and save the result to a file.
https://github.com/musatahawar/video-transcriber
python python3 transcription-script
Last synced: 20 days ago
JSON representation
This script uses the Whisper library to transcribe text and save the result to a file.
- Host: GitHub
- URL: https://github.com/musatahawar/video-transcriber
- Owner: MusaTahawar
- License: mit
- Created: 2023-11-13T08:47:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-13T08:51:21.000Z (about 1 year ago)
- Last Synced: 2024-11-09T17:19:01.751Z (3 months ago)
- Topics: python, python3, transcription-script
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Whisper Transcription Script
This script uses the Whisper library to transcribe text and save the result to a file.
## Getting Started
### Prerequisites
Before you can run this script, you need to install the Whisper library. You can install it using pip:
```bash
pip install whisper
```### Usage
1. Load the 'base' model from Whisper:
```python
model = whisper.load_model("base")
```2. Transcribe text (you should replace the empty string with your actual input):
```python
transcription_result = model.transcribe("Your input text here")
```3. Open a file in append mode and write the transcription result to it:
```python
with open("transcription.txt", "a") as output_file:
output_file.write(transcription_result['text'])
```4. Run the script, and it will save the transcription result to the "transcription.txt" file.
## Author
[Your Name]
## License
This project is licensed under the [License Name] License - see the [LICENSE](LICENSE) file for details.
## Acknowledgments
- Mention any credits or resources you used.
- You can also provide links to the Whisper documentation and other relevant resources.
```Make sure to replace `[Your Name]` and `[License Name]` with your actual name and the license you want to use for your code.
This README file will provide clear instructions for users who want to use your script and also give credit to any resources you used.