Instructions
- Install blender 2.79.
- Set Path variable for python distribution present inside blender (\Your installation directory\Blender Foundation\Blender\2.79\python\bin). Install pip for this python distribution from here and set path variable also.
Install and setup ffmpeg from here.Not required now, instead importing pydub.- Install python dependecies using pip: pydub, pyaudio, google-cloud-speech, google-cloud-language etc.
- Congifure API Key for google cloud services. You might have to create a new project and enable google speech and language api in googlecloud console, then create and download a json credential file and set "json_key_file" in startup.py to the path to json credential file. Detailed instructions here.
- Run animationData.py as script inside blender. It generates some meta-data used in animating sign glosses.
- Run .blend file inside model folder.
- Use python 3.5.3 so that code is compatible with blender 2.79.
fmpeg required for converting wav to flac. Install ffmpeg first and add it to environment variables else errors will occur.- .raw & .flac are the only audio file accepted for text transalation by the API.
- Works correctly for first time in game engine after that errors occur because python cahces imported modules. Hence we need to restart blender everytime to delete cached imports.