Ich hasse mein Leben bring mich um fr fr alles hier ist scheiße ~ahh push

mp3 parser
This commit is contained in:
Ali
2024-12-10 20:28:31 +01:00
parent 055657939e
commit f5f3bf4859
3 changed files with 13 additions and 0 deletions
BIN
View File
Binary file not shown.
+12
View File
@@ -0,0 +1,12 @@
import whisper
import json
model = whisper.load_model('tiny')
result = model.transcribe(str("Aufzeichnung.mp3"), language='de', verbose=True)
# Dump the results to a JSON file
with open('transcript.json', "w") as file:
json.dump(result['text'], file, indent=4)
+1
View File
@@ -0,0 +1 @@
" Hallo, das ist ein Test, Hello World."