Changed: paths
This commit is contained in:
parent
b316b60c2a
commit
5649611ce2
@ -18,8 +18,10 @@ def manage():
|
|||||||
return dict(grid=grid)
|
return dict(grid=grid)
|
||||||
|
|
||||||
def vtt():
|
def vtt():
|
||||||
return dict(message=transcription_tools.create_vtt(
|
video_path = '/home/mschmidt/Videos/100-Meinungen-Video-erstellen.mp4'
|
||||||
'/home/mschmidt/Videos/100-Meinungen-Video-erstellen.mp4'))
|
model_path = 'applications/transcription/private/model'
|
||||||
|
return dict(message=transcription_tools.create_vtt(model_path, video_path))
|
||||||
|
|
||||||
|
|
||||||
def user():
|
def user():
|
||||||
return dict(form=auth())
|
return dict(form=auth())
|
@ -24,9 +24,9 @@ import json
|
|||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
|
||||||
def create_vtt(video_path):
|
def create_vtt(model_path, video_path):
|
||||||
sample_rate = 16000
|
sample_rate = 16000
|
||||||
model = Model("applications/transcription/private/model")
|
model = Model(model_path)
|
||||||
rec = KaldiRecognizer(model, sample_rate)
|
rec = KaldiRecognizer(model, sample_rate)
|
||||||
rec.SetWords(True)
|
rec.SetWords(True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user