Hi,
Maybe this can help some peoples that needs to deal with speeches, stories, etc…
This script takes a .wav file and transforms it in movement into Blender (key frames)
Example,
*You have 5 minutes of audio to make a animation “talk”. If you have the audio file (just with voice), you can get a very good sync to the mouth (using bones).
*Make balls jumping with the sound
*Make a hand move and fake a piano player (using the sound of a piano)
I’ve used it some times and got a very funny result. The interface with Blender is just released, and its here.
Get Started Manual :spin:
Run the script into Blender (maybe you will see a error but, go on. I’m working on it)
Select a object. You can use the default cube (Mesh, Bone or Camera NOT lattice)
See in the Object section: “import Movement From Wav File”
Mark (for example) just Location L.Z
Click the button “Import Wav”
Choose a file .wav
(it woks a lot better with just one voice or one instrument at a time. The script takes the sound of the file but, it cannot separate for example voice and guitar)
**** See the terminal window about the execution ****
Warning: Use a file with with some seconds to see the performance. It can take several minutes to process and import a large file. I’ve processed a 80MB file (7 minutes of audio) into a MESH in 3 minutes but, the same file in a bone to deform a mesh took 15 minutes (in a old Pentiun 4 :o). The major time is spend in import the values to Blender.
Advanced Manual (not so much)
Audio Sensitivity:
See in the terminal window the value of samples. If you got just too low values (valued goes from 0 to 255), change the Sensibility from 1 to something up to 6.
Apply the movement:
If you want to to scale your object, mark S.X and/or S.Y and/or S.Z
If you want to to rotate your object, mark R.X and/or R.Y and/or R.Z
If you want to to move your object, mark L.X and/or L.Y and/or L.Z
You can mark some, and see a very funny mess
Scale:
If you want to increase or decrease the values that you get, use the Scale Factor.
Scale 1, gets 0 ~255
Scale 100, gets 0~2.55
To a mouth bone, maybe you will use a Scale of 2000
Frames /s
Its better to use the same setting of your scene to start.
There is a lot of work to do with it but, its working well in 2.53.1 svn r31541
If you find a bug let me know (i’m sure that there is some bugs :yes:)
Please, be patient about bugs. That’s my first Blender Script, my first Python script and i know Blender for just 4 months BUT, please, let me know if you find one!
Its a alpha release, there is some TODOs
Have fun