Ich hasse mein Leben bring mich um fr fr alles hier ist scheiße ~ahh push
mp3 parser
This commit is contained in:
1 parent
055657939e
commit
f5f3bf4859
3 files changed
+13
No files matched your search
Binary file not shown.
@@ -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)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
" Hallo, das ist ein Test, Hello World."
|
||||||
Reference in new issue
Block a user