refactor hollywoo audio python scripts so looping through tagged audio is reusable

This commit is contained in:
2022-09-27 04:42:28 +00:00
parent fb64dfca7e
commit bfa4eccda5
4 changed files with 119 additions and 78 deletions

View File

@@ -6,13 +6,9 @@ usage = 'python transcribe-voice-track.py <wav filenames...> '
# If you don't get results, try re-exporting as Signed 16-bit PCM
import util
import wave
import json
import sys
import os
import requests
from zipfile import ZipFile
from scipy.io import wavfile
from vosk import Model, KaldiRecognizer