Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dcc:itsol:whisper:scripts [2024/08/12 10:15] – fixed spacing in the "Specialized scripts" section giulio | dcc:itsol:whisper:scripts [2025/02/03 08:49] (current) – added note on changed dependencies giulio | ||
---|---|---|---|
Line 5: | Line 5: | ||
In order to run the script, you will first have to create it. Open your text editor of choice and copy the highlighted code below into the new file. Save the file with the name: | In order to run the script, you will first have to create it. Open your text editor of choice and copy the highlighted code below into the new file. Save the file with the name: | ||
+ | |||
+ | **Note:** The PyTorch module needed to install Whisper has changed due to an update on the dependencies of Whisper. The module displayed in the screenshots is the previous version. Please make sure to **use the version of the module you find in the text**. | ||
Line 22: | Line 24: | ||
\\ | \\ | ||
- | '' | + | '' |
'' | '' | ||
Line 72: | Line 74: | ||
The next two lines make sure that the virtual environment and the dependencies that Whisper needs to run are correctly loaded: | The next two lines make sure that the virtual environment and the dependencies that Whisper needs to run are correctly loaded: | ||
- | * '' | + | * '' |
This line loads the program packages that Whisper needs to run. Please be sure to not modify it, otherwise the script is not going to load the correct dependencies. | This line loads the program packages that Whisper needs to run. Please be sure to not modify it, otherwise the script is not going to load the correct dependencies. | ||
Line 114: | Line 116: | ||
\\ | \\ | ||
- | '' | + | '' |
'' | '' | ||
Line 125: | Line 127: | ||
Whisper is also capable of translating any X language into English. To let the program know that you wish to see a translation instead of a transcription, | Whisper is also capable of translating any X language into English. To let the program know that you wish to see a translation instead of a transcription, | ||
+ | |||
+ | When you save the script, you can call it '' | ||
**Note**: Regardless of whether you run the transcription or the translation first, the file names of the output files will be the exact same. In order for the second operation (translation or transcription) to not overwrite the first, you need to rename the output files before you run the second operation. In this way, the output of your first operation will remain untouched by the second operation. | **Note**: Regardless of whether you run the transcription or the translation first, the file names of the output files will be the exact same. In order for the second operation (translation or transcription) to not overwrite the first, you need to rename the output files before you run the second operation. In this way, the output of your first operation will remain untouched by the second operation. | ||
Line 140: | Line 144: | ||
\\ | \\ | ||
- | '' | + | '' |
'' | '' |