Skip to content

devoteamgcloud/fr-dgtl-transcript-video-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fr-dgtl-transcript-video-poc

POC d'un transcript d'une video via l'API Speech to Text

I. Create .env:

# Will store audio files created from video, used by Speech to Text API
BUCKET_NAME="speech-to-text-ahtest"
# Specify how to split audio content
# i.e for a 1 hour video, SEGMENT_DIVIDER=6 will create 6 audio file with 10m length, and concurrently transcript them
# Very usefull for long video, keep 1 for very short content
SEGMENT_DIVIDER=1

II. Install dependencies

python3 -m venv venv
pip install -r requirements.txt

# + ffmpeg dependency
# brew install ffmpeg
# apt-get install ffmpeg

III. Create 'videos/' directory and add a video to transcript in.

IV. Run script

python3 main.py <my_video_in_videos_folder>

About

POC d'un transcript d'une video via l'API Speech to Text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages