Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.