Can't open model with non-ascii path on Windows
- Lingua principale
- Jupyter Notebook
- Stelle
- 15.1k
- Fork
- 1.8k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi, when trying to create a model I'm having the following issue:

I'm using Jupyter Notebook, here is my full code:
```
import ffmpeg
import subprocess
import os
import sys
from moviepy.editor import VideoFileClip
from vosk import Model, KaldiRecognizer
import pyaudio
base_dir = r'C:\Users\JoséRubenLoibman\Downloads\Python\Aulas\Video_to_Text'
base_dir = base_dir.replace("\\", "/") + "/"
mp4_file = base_dir + "Galina_Loibman_Tape1.mp4"
mp3_file = base_dir + "Galina_Loibman_Tape1.mp3"
def convert_video_to_audio_moviepy(video_file, output_ext="mp3"):
"""Converts video to audio using MoviePy library
that uses `ffmpeg` under the hood"""
filename, ext = os.path.splitext(video_file)
clip = VideoFileClip(video_file)
clip.audio.write_audiofile(f"{filename}.{output_ext}")
if __name__ == "__main__":
vf = sys.argv[1]
convert_video_to_audio_moviepy(mp4_file)
model = Model(lang = "ru")
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.