Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: UnexpectedError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
audio_path string | sample_rate_target int64 | win_length_ms float64 | hop_length_ms float64 | n_visemes int64 | viseme_list list | metadata dict | mouthCues list | mouth_cues list | num_feature_frames int64 | frame_labels list |
|---|---|---|---|---|---|---|---|---|---|---|
../audio/Adam_A_storm_of_thought_unfurls_wit_1761276358775.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.23,
"value": "B"
},
{
"start": 0.23,
"end": 0.44,
"value": "E"
},
{
"start": 0.44,
"end": 0.52,
"value": "A"
},
{
"start": 0.52,
"end": 0.59,
"value": "C"
},
{
"st... | 1,164 | [
8,
8,
8,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
2,
2,
2,
2,
2,
2,
2,
6,
6,
6,
6,
6... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_A_storm_of_thought_unfurls_wit_1761276358775.wav",
"duration": 11.65
} | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.23,
"value": "B"
},
{
"start": 0.23,
"end": 0.44,
"value": "E"
},
{
"start": 0.44,
"end": 0.52,
"value": "A"
},
{
"start": 0.52,
"end": 0.59,
"value": "C"
},
{
"st... | null | null | null |
../audio/Adam_Beneath_the_blinding_blaze_of__1761276049351.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.01,
"value": "X"
},
{
"start": 0.01,
"end": 0.07,
"value": "A"
},
{
"start": 0.07,
"end": 0.42,
"value": "B"
},
{
"start": 0.42,
"end": 0.5,
"value": "A"
},
{
"start": 0.5,
"end": 0.68,
"value": "H"
},
{
"star... | 2,863 | [
8,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Beneath_the_blinding_blaze_of__1761276049351.wav",
"duration": 28.65
} | [
{
"start": 0,
"end": 0.01,
"value": "X"
},
{
"start": 0.01,
"end": 0.07,
"value": "A"
},
{
"start": 0.07,
"end": 0.42,
"value": "B"
},
{
"start": 0.42,
"end": 0.5,
"value": "A"
},
{
"start": 0.5,
"end": 0.68,
"value": "H"
},
{
"star... | null | null | null |
../audio/Adam_Beneath_the_glacier_s_glassy_g_1761276211449.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.04,
"value": "X"
},
{
"start": 0.04,
"end": 0.12,
"value": "C"
},
{
"start": 0.12,
"end": 0.2,
"value": "A"
},
{
"start": 0.2,
"end": 0.52,
"value": "B"
},
{
"start": 0.52,
"end": 0.73,
"value": "H"
},
{
"star... | 857 | [
8,
8,
8,
8,
2,
2,
2,
2,
2,
2,
2,
2,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Beneath_the_glacier_s_glassy_g_1761276211449.wav",
"duration": 8.59
} | [
{
"start": 0,
"end": 0.04,
"value": "X"
},
{
"start": 0.04,
"end": 0.12,
"value": "C"
},
{
"start": 0.12,
"end": 0.2,
"value": "A"
},
{
"start": 0.2,
"end": 0.52,
"value": "B"
},
{
"start": 0.52,
"end": 0.73,
"value": "H"
},
{
"star... | null | null | null |
../audio/Adam_Beneath_the_silver_hush_of_the_1761276138005.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.04,
"value": "A"
},
{
"start": 0.04,
"end": 0.42,
"value": "B"
},
{
"start": 0.42,
"end": 0.49,
"value": "C"
},
{
"start": 0.49,
"end": 0.77,
"value": "B"
},
{
"start": 0.77,
"end": 0.84,
"value": "G"
},
{
"st... | 2,566 | [
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Beneath_the_silver_hush_of_the_1761276138005.wav",
"duration": 25.68
} | [
{
"start": 0,
"end": 0.04,
"value": "A"
},
{
"start": 0.04,
"end": 0.42,
"value": "B"
},
{
"start": 0.42,
"end": 0.49,
"value": "C"
},
{
"start": 0.49,
"end": 0.77,
"value": "B"
},
{
"start": 0.77,
"end": 0.84,
"value": "G"
},
{
"st... | null | null | null |
../audio/Adam_Beneath_the_surface_of_still_w_1761276358775.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.01,
"value": "X"
},
{
"start": 0.01,
"end": 0.07,
"value": "A"
},
{
"start": 0.07,
"end": 0.39,
"value": "B"
},
{
"start": 0.39,
"end": 0.46,
"value": "C"
},
{
"start": 0.46,
"end": 0.6,
"value": "B"
},
{
"sta... | 862 | [
8,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
4,
4,
4,
4... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Beneath_the_surface_of_still_w_1761276358775.wav",
"duration": 8.63
} | [
{
"start": 0,
"end": 0.01,
"value": "X"
},
{
"start": 0.01,
"end": 0.07,
"value": "A"
},
{
"start": 0.07,
"end": 0.39,
"value": "B"
},
{
"start": 0.39,
"end": 0.46,
"value": "C"
},
{
"start": 0.46,
"end": 0.6,
"value": "B"
},
{
"sta... | null | null | null |
../audio/Adam_Between_the_first_breath_of_da_1761276211450.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.01,
"value": "X"
},
{
"start": 0.01,
"end": 0.09,
"value": "A"
},
{
"start": 0.09,
"end": 0.21,
"value": "B"
},
{
"start": 0.21,
"end": 0.28,
"value": "F"
},
{
"start": 0.28,
"end": 0.42,
"value": "B"
},
{
"st... | 648 | [
8,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
5,
5,
5,
5,
5,
5,
5,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
1... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Between_the_first_breath_of_da_1761276211450.wav",
"duration": 6.5
} | [
{
"start": 0,
"end": 0.01,
"value": "X"
},
{
"start": 0.01,
"end": 0.09,
"value": "A"
},
{
"start": 0.09,
"end": 0.21,
"value": "B"
},
{
"start": 0.21,
"end": 0.28,
"value": "F"
},
{
"start": 0.28,
"end": 0.42,
"value": "B"
},
{
"st... | null | null | null |
../audio/Adam_Cities_rise_like_circuitry_acr_1761276358775.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.59,
"value": "B"
},
{
"start": 0.59,
"end": 0.73,
"value": "D"
},
{
"start": 0.73,
"end": 0.94,
"value": "B"
},
{
"start": 0.94,
"end": 1.01,
"value": "H"
},
{
"st... | 1,006 | [
8,
8,
8,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
3,
3,
3,
3,
3... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Cities_rise_like_circuitry_acr_1761276358775.wav",
"duration": 10.07
} | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.59,
"value": "B"
},
{
"start": 0.59,
"end": 0.73,
"value": "D"
},
{
"start": 0.73,
"end": 0.94,
"value": "B"
},
{
"start": 0.94,
"end": 1.01,
"value": "H"
},
{
"st... | null | null | null |
../audio/Adam_Good_morning_Today_s_forecast__1761254304995.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.02,
"value": "X"
},
{
"start": 0.02,
"end": 0.12,
"value": "F"
},
{
"start": 0.12,
"end": 0.19,
"value": "B"
},
{
"start": 0.19,
"end": 0.27,
"value": "A"
},
{
"start": 0.27,
"end": 0.35,
"value": "E"
},
{
"st... | 1,099 | [
8,
8,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
4,
4,
4,
4,
4,
4,
4,
4,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Good_morning_Today_s_forecast__1761254304995.wav",
"duration": 11
} | [
{
"start": 0,
"end": 0.02,
"value": "X"
},
{
"start": 0.02,
"end": 0.12,
"value": "F"
},
{
"start": 0.12,
"end": 0.19,
"value": "B"
},
{
"start": 0.19,
"end": 0.27,
"value": "A"
},
{
"start": 0.27,
"end": 0.35,
"value": "E"
},
{
"st... | null | null | null |
../audio/Adam_In_the_heart_of_the_city_neon__1761276211448.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.05,
"value": "X"
},
{
"start": 0.05,
"end": 0.16,
"value": "B"
},
{
"start": 0.16,
"end": 0.23,
"value": "C"
},
{
"start": 0.23,
"end": 0.42,
"value": "D"
},
{
"start": 0.42,
"end": 0.47,
"value": "C"
},
{
"st... | 880 | [
8,
8,
8,
8,
8,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_In_the_heart_of_the_city_neon__1761276211448.wav",
"duration": 8.82
} | [
{
"start": 0,
"end": 0.05,
"value": "X"
},
{
"start": 0.05,
"end": 0.16,
"value": "B"
},
{
"start": 0.16,
"end": 0.23,
"value": "C"
},
{
"start": 0.23,
"end": 0.42,
"value": "D"
},
{
"start": 0.42,
"end": 0.47,
"value": "C"
},
{
"st... | null | null | null |
../audio/Adam_Lanterns_drift_upon_the_river__1761276211449.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.04,
"value": "X"
},
{
"start": 0.04,
"end": 0.11,
"value": "H"
},
{
"start": 0.11,
"end": 0.25,
"value": "C"
},
{
"start": 0.25,
"end": 0.46,
"value": "E"
},
{
"start": 0.46,
"end": 0.53,
"value": "C"
},
{
"st... | 611 | [
8,
8,
8,
8,
7,
7,
7,
7,
7,
7,
7,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Lanterns_drift_upon_the_river__1761276211449.wav",
"duration": 6.13
} | [
{
"start": 0,
"end": 0.04,
"value": "X"
},
{
"start": 0.04,
"end": 0.11,
"value": "H"
},
{
"start": 0.11,
"end": 0.25,
"value": "C"
},
{
"start": 0.25,
"end": 0.46,
"value": "E"
},
{
"start": 0.46,
"end": 0.53,
"value": "C"
},
{
"st... | null | null | null |
../audio/Adam_Night_unfurls_its_velvet_shrou_1761276211448.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.22,
"value": "C"
},
{
"start": 0.22,
"end": 0.29,
"value": "B"
},
{
"start": 0.29,
"end": 0.43,
"value": "C"
},
{
"start": 0.43,
"end": 0.57,
"value": "B"
},
{
"st... | 732 | [
8,
8,
8,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
6,
6,
6,
6,
6,
6,
6... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Night_unfurls_its_velvet_shrou_1761276211448.wav",
"duration": 7.33
} | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.22,
"value": "C"
},
{
"start": 0.22,
"end": 0.29,
"value": "B"
},
{
"start": 0.29,
"end": 0.43,
"value": "C"
},
{
"start": 0.43,
"end": 0.57,
"value": "B"
},
{
"st... | null | null | null |
../audio/Adam_Over_the_endless_desert_dunes__1761276211449.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.04,
"value": "X"
},
{
"start": 0.04,
"end": 0.09,
"value": "E"
},
{
"start": 0.09,
"end": 0.14,
"value": "G"
},
{
"start": 0.14,
"end": 0.7,
"value": "B"
},
{
"start": 0.7,
"end": 0.84,
"value": "C"
},
{
"star... | 834 | [
8,
8,
8,
8,
4,
4,
4,
4,
4,
6,
6,
6,
6,
6,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Over_the_endless_desert_dunes__1761276211449.wav",
"duration": 8.35
} | [
{
"start": 0,
"end": 0.04,
"value": "X"
},
{
"start": 0.04,
"end": 0.09,
"value": "E"
},
{
"start": 0.09,
"end": 0.14,
"value": "G"
},
{
"start": 0.14,
"end": 0.7,
"value": "B"
},
{
"start": 0.7,
"end": 0.84,
"value": "C"
},
{
"star... | null | null | null |
../audio/Adam_The_autumn_air_carried_a_crisp_1760924654847.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.08,
"value": "X"
},
{
"start": 0.08,
"end": 0.22,
"value": "B"
},
{
"start": 0.22,
"end": 0.29,
"value": "E"
},
{
"start": 0.29,
"end": 0.43,
"value": "B"
},
{
"start": 0.43,
"end": 0.51,
"value": "A"
},
{
"st... | 778 | [
8,
8,
8,
8,
8,
8,
8,
8,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
4,
4,
4,
4,
4,
4,
4,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_The_autumn_air_carried_a_crisp_1760924654847.wav",
"duration": 7.8
} | [
{
"start": 0,
"end": 0.08,
"value": "X"
},
{
"start": 0.08,
"end": 0.22,
"value": "B"
},
{
"start": 0.22,
"end": 0.29,
"value": "E"
},
{
"start": 0.29,
"end": 0.43,
"value": "B"
},
{
"start": 0.43,
"end": 0.51,
"value": "A"
},
{
"st... | null | null | null |
../audio/Adam_The_horizon_hums_with_heat_as__1761276211448.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.07,
"value": "B"
},
{
"start": 0.07,
"end": 0.11,
"value": "C"
},
{
"start": 0.11,
"end": 0.39,
"value": "E"
},
{
"start": 0.39,
"end": 0.46,
"value": "C"
},
{
"st... | 927 | [
8,
8,
8,
1,
1,
1,
1,
2,
2,
2,
2,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_The_horizon_hums_with_heat_as__1761276211448.wav",
"duration": 9.28
} | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.07,
"value": "B"
},
{
"start": 0.07,
"end": 0.11,
"value": "C"
},
{
"start": 0.11,
"end": 0.39,
"value": "E"
},
{
"start": 0.39,
"end": 0.46,
"value": "C"
},
{
"st... | null | null | null |
../audio/Adam_The_mountain_breathes_clouds_a_1761276211449.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.02,
"value": "X"
},
{
"start": 0.02,
"end": 0.1,
"value": "B"
},
{
"start": 0.1,
"end": 0.18,
"value": "A"
},
{
"start": 0.18,
"end": 0.26,
"value": "C"
},
{
"start": 0.26,
"end": 0.33,
"value": "E"
},
{
"star... | 704 | [
8,
8,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
2,
2,
2,
2,
2,
2,
2,
2,
4,
4,
4,
4,
4,
4,
4,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_The_mountain_breathes_clouds_a_1761276211449.wav",
"duration": 7.05
} | [
{
"start": 0,
"end": 0.02,
"value": "X"
},
{
"start": 0.02,
"end": 0.1,
"value": "B"
},
{
"start": 0.1,
"end": 0.18,
"value": "A"
},
{
"start": 0.18,
"end": 0.26,
"value": "C"
},
{
"start": 0.26,
"end": 0.33,
"value": "E"
},
{
"star... | null | null | null |
../audio/Adam_The_sun_rises_over_the_quiet_h_1761275942023.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.08,
"value": "X"
},
{
"start": 0.08,
"end": 0.22,
"value": "B"
},
{
"start": 0.22,
"end": 0.43,
"value": "C"
},
{
"start": 0.43,
"end": 0.5,
"value": "B"
},
{
"start": 0.5,
"end": 0.64,
"value": "C"
},
{
"star... | 1,684 | [
8,
8,
8,
8,
8,
8,
8,
8,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_The_sun_rises_over_the_quiet_h_1761275942023.wav",
"duration": 16.85
} | [
{
"start": 0,
"end": 0.08,
"value": "X"
},
{
"start": 0.08,
"end": 0.22,
"value": "B"
},
{
"start": 0.22,
"end": 0.43,
"value": "C"
},
{
"start": 0.43,
"end": 0.5,
"value": "B"
},
{
"start": 0.5,
"end": 0.64,
"value": "C"
},
{
"star... | null | null | null |
../audio/Adam_The_world_does_not_remember_wh_1761254473807.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.06,
"value": "X"
},
{
"start": 0.06,
"end": 0.11,
"value": "B"
},
{
"start": 0.11,
"end": 0.16,
"value": "C"
},
{
"start": 0.16,
"end": 0.3,
"value": "F"
},
{
"start": 0.3,
"end": 0.44,
"value": "E"
},
{
"star... | 1,266 | [
8,
8,
8,
8,
8,
8,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_The_world_does_not_remember_wh_1761254473807.wav",
"duration": 12.67
} | [
{
"start": 0,
"end": 0.06,
"value": "X"
},
{
"start": 0.06,
"end": 0.11,
"value": "B"
},
{
"start": 0.11,
"end": 0.16,
"value": "C"
},
{
"start": 0.16,
"end": 0.3,
"value": "F"
},
{
"start": 0.3,
"end": 0.44,
"value": "E"
},
{
"star... | null | null | null |
../audio/Adam_Through_the_narrow_alleys_of_m_1761276211449.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.06,
"value": "X"
},
{
"start": 0.06,
"end": 0.23,
"value": "F"
},
{
"start": 0.23,
"end": 0.3,
"value": "B"
},
{
"start": 0.3,
"end": 0.51,
"value": "C"
},
{
"start": 0.51,
"end": 0.65,
"value": "E"
},
{
"star... | 746 | [
8,
8,
8,
8,
8,
8,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Through_the_narrow_alleys_of_m_1761276211449.wav",
"duration": 7.47
} | [
{
"start": 0,
"end": 0.06,
"value": "X"
},
{
"start": 0.06,
"end": 0.23,
"value": "F"
},
{
"start": 0.23,
"end": 0.3,
"value": "B"
},
{
"start": 0.3,
"end": 0.51,
"value": "C"
},
{
"start": 0.51,
"end": 0.65,
"value": "E"
},
{
"star... | null | null | null |
../audio/Adam_Thunder_growls_across_the_edge_1761276211449.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.04,
"value": "X"
},
{
"start": 0.04,
"end": 0.09,
"value": "G"
},
{
"start": 0.09,
"end": 0.14,
"value": "C"
},
{
"start": 0.14,
"end": 0.21,
"value": "B"
},
{
"start": 0.21,
"end": 0.35,
"value": "E"
},
{
"st... | 704 | [
8,
8,
8,
8,
6,
6,
6,
6,
6,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
4... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_Thunder_growls_across_the_edge_1761276211449.wav",
"duration": 7.05
} | [
{
"start": 0,
"end": 0.04,
"value": "X"
},
{
"start": 0.04,
"end": 0.09,
"value": "G"
},
{
"start": 0.09,
"end": 0.14,
"value": "C"
},
{
"start": 0.14,
"end": 0.21,
"value": "B"
},
{
"start": 0.21,
"end": 0.35,
"value": "E"
},
{
"st... | null | null | null |
../audio/Adam_and_if_you_need_a_quick_summar_1761254304995.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.13,
"value": "C"
},
{
"start": 0.13,
"end": 0.27,
"value": "B"
},
{
"start": 0.27,
"end": 0.41,
"value": "F"
},
{
"start": 0.41,
"end": 0.55,
"value": "B"
},
{
"st... | 253 | [
8,
8,
8,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_and_if_you_need_a_quick_summar_1761254304995.wav",
"duration": 2.55
} | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.13,
"value": "C"
},
{
"start": 0.13,
"end": 0.27,
"value": "B"
},
{
"start": 0.27,
"end": 0.41,
"value": "F"
},
{
"start": 0.41,
"end": 0.55,
"value": "B"
},
{
"st... | null | null | null |
../audio/Adam_casting_dappled_patterns_on_th_1760924654847.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.22,
"value": "C"
},
{
"start": 0.22,
"end": 0.43,
"value": "B"
},
{
"start": 0.43,
"end": 0.57,
"value": "C"
},
{
"start": 0.57,
"end": 0.71,
"value": "A"
},
{
"st... | 295 | [
8,
8,
8,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
0,
0,
0,
0,
0,
0,
0... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_casting_dappled_patterns_on_th_1760924654847.wav",
"duration": 2.97
} | [
{
"start": 0,
"end": 0.03,
"value": "X"
},
{
"start": 0.03,
"end": 0.22,
"value": "C"
},
{
"start": 0.22,
"end": 0.43,
"value": "B"
},
{
"start": 0.43,
"end": 0.57,
"value": "C"
},
{
"start": 0.57,
"end": 0.71,
"value": "A"
},
{
"st... | null | null | null |
../audio/Adam_just_ask_me_1761254304995.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.06,
"value": "X"
},
{
"start": 0.06,
"end": 0.22,
"value": "B"
},
{
"start": 0.22,
"end": 0.36,
"value": "C"
},
{
"start": 0.36,
"end": 0.5,
"value": "B"
},
{
"start": 0.5,
"end": 0.58,
"value": "A"
},
{
"star... | 91 | [
8,
8,
8,
8,
8,
8,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Adam_just_ask_me_1761254304995.wav",
"duration": 0.92
} | [
{
"start": 0,
"end": 0.06,
"value": "X"
},
{
"start": 0.06,
"end": 0.22,
"value": "B"
},
{
"start": 0.22,
"end": 0.36,
"value": "C"
},
{
"start": 0.36,
"end": 0.5,
"value": "B"
},
{
"start": 0.5,
"end": 0.58,
"value": "A"
},
{
"star... | null | null | null |
../audio/Alice_A_labyrinthine_lexicon_unfurls_1761275991238.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.05,
"value": "X"
},
{
"start": 0.05,
"end": 0.25,
"value": "B"
},
{
"start": 0.25,
"end": 0.53,
"value": "F"
},
{
"start": 0.53,
"end": 1.16,
"value": "B"
},
{
"start": 1.16,
"end": 1.3,
"value": "C"
},
{
"sta... | 3,291 | [
8,
8,
8,
8,
8,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Alice_A_labyrinthine_lexicon_unfurls_1761275991238.wav",
"duration": 32.92
} | [
{
"start": 0,
"end": 0.05,
"value": "X"
},
{
"start": 0.05,
"end": 0.25,
"value": "B"
},
{
"start": 0.25,
"end": 0.53,
"value": "F"
},
{
"start": 0.53,
"end": 1.16,
"value": "B"
},
{
"start": 1.16,
"end": 1.3,
"value": "C"
},
{
"sta... | null | null | null |
../audio/Alice_A_single_candle_burns_in_the_c_1761276358776.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.05,
"value": "X"
},
{
"start": 0.05,
"end": 0.09,
"value": "C"
},
{
"start": 0.09,
"end": 0.62,
"value": "B"
},
{
"start": 0.62,
"end": 0.9,
"value": "C"
},
{
"start": 0.9,
"end": 0.97,
"value": "B"
},
{
"star... | 885 | [
8,
8,
8,
8,
8,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Alice_A_single_candle_burns_in_the_c_1761276358776.wav",
"duration": 8.87
} | [
{
"start": 0,
"end": 0.05,
"value": "X"
},
{
"start": 0.05,
"end": 0.09,
"value": "C"
},
{
"start": 0.09,
"end": 0.62,
"value": "B"
},
{
"start": 0.62,
"end": 0.9,
"value": "C"
},
{
"start": 0.9,
"end": 0.97,
"value": "B"
},
{
"star... | null | null | null |
../audio/Alice_A_storm_of_thought_unfurls_wit_1761276358775.wav | 16,000 | 25 | 10 | 9 | [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"X"
] | null | null | [
{
"start": 0,
"end": 0.05,
"value": "X"
},
{
"start": 0.05,
"end": 0.1,
"value": "C"
},
{
"start": 0.1,
"end": 0.39,
"value": "B"
},
{
"start": 0.39,
"end": 0.44,
"value": "C"
},
{
"start": 0.44,
"end": 0.58,
"value": "E"
},
{
"star... | 1,210 | [
8,
8,
8,
8,
8,
2,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
0,
0,
0,
0,
0,
0... |
null | null | null | null | null | null | {
"soundFile": "/Users/gabe/Code/Finconecta/talking-head/python/audio/Alice_A_storm_of_thought_unfurls_wit_1761276358775.wav",
"duration": 12.12
} | [
{
"start": 0,
"end": 0.05,
"value": "X"
},
{
"start": 0.05,
"end": 0.1,
"value": "C"
},
{
"start": 0.1,
"end": 0.39,
"value": "B"
},
{
"start": 0.39,
"end": 0.44,
"value": "C"
},
{
"start": 0.44,
"end": 0.58,
"value": "E"
},
{
"star... | null | null | null |
Dataset
Overview
This dataset contains 1,244 English speech alignment files with frame-level viseme labels produced via Rhubarb Lip Sync. Each alignment is expressed at a 16 kHz target sample rate with a 25 ms analysis window and 10 ms hop, and retains the relative path to the corresponding WAV used during generation.
Key figures:
- Total aligned duration:
14,280 s (3.97 h) across 1,244 clips - Clip length: mean 11.48 s, median 9.15 s, min 0.84 s, max 38.21 s (5th-95th percentiles: 2.55-29.54 s)
- Frame count: 1,426,112 total (~1,146 per clip on average)
- Speakers: 52 synthetic voices with 22-25 clips each (mean 23.9 clips per speaker)
- Visemes: 9 classes (
A,B,C,D,E,F,G,H,X) as detailed below
| Viseme | Frames | Share |
|---|---|---|
| A | 76,124 | 5.34% |
| B | 630,457 | 44.21% |
| C | 229,139 | 16.07% |
| D | 49,494 | 3.47% |
| E | 139,937 | 9.81% |
| F | 93,707 | 6.57% |
| G | 44,553 | 3.12% |
| H | 31,499 | 2.21% |
| X (rest) | 131,202 | 9.20% |
The shortest aligned clip is Sarah_just_ask_me_1761254304995.wav (0.84 s); the longest is Thomas_A_labyrinthine_lexicon_unfurls_1761275991237.wav (38.21 s).
Directory Layout
.
manifest.jsonl # one JSON object per clip pointing to its alignment
alignments/
<clip>.alignment.json # frame-level labels and metadata
<clip>.rhubarb.json # raw mouthCue output from Rhubarb
viseme_map.json # viseme -> index mapping used in frame labels
DATASET.md # this document
manifest.jsonl is newline-delimited JSON. Each record exposes the relative path to its corresponding alignment file, for example:
{"alignment_path": "alignments/Adam_Beneath_the_glacier_s_glassy_g_1761276211449.alignment.json"}
Alignment Files
Every <clip>.alignment.json contains:
audio_path: relative path to the WAV associated with the alignmentsample_rate_target,win_length_ms,hop_length_ms: analysis parameters (16 kHz target, 25 ms window, 10 ms hop)viseme_list: ordered viseme labels;frame_labelsstores integer indices into this listmouth_cues: the original intervals from Rhubarb (matching the companion<clip>.rhubarb.json)num_feature_frames: total frames inframe_labelsframe_labels: per-frame viseme indices aligned to analysis hops (first frame begins at t=0)
Reconstructing the effective clip duration from metadata uses (num_feature_frames - 1) * hop + win (with hop and win expressed in seconds).
Generation Workflow
To regenerate alignments, use the script below:
- Place WAV files under a source directory (e.g.,
audio/). - Run the script with matching arguments so it can locate the WAVs, call the Rhubarb binary, and write the JSON artifacts.
- Inspect
manifest.jsonl,alignments/, andviseme_map.jsonfor the resulting outputs.
Example invocation:
python generate_dataset.py --wavs_dir audio --out_dir dataset --rhubarb_path /path/to/rhubarb --sr 16000 --win_length_ms 25 --hop_length_ms 10
Reference Script: generate_dataset.py
#!/usr/bin/env python3
"""
Generate frame-aligned viseme labels using Rhubarb Lip Sync.
For each WAV:
1) Call Rhubarb to get mouthCues JSON: [{"start": float, "end": float, "value": str}, ...]
2) Align to fixed feature hop (e.g., 10 ms) and window (e.g., 25 ms)
3) Save per-file alignment and a manifest.jsonl for training
Example:
python generate_dataset.py \
--wavs_dir data/wavs \
--out_dir data/dataset \
--rhubarb_path rhubarb \
--sr 16000 --win_length_ms 25 --hop_length_ms 10
"""
import argparse
import json
import math
import os
import subprocess
from pathlib import Path
from typing import List, Dict, Any
import numpy as np
import soundfile as sf # <-- use soundfile for audio metadata (samplerate, frames, duration)
# === Adjust if your Rhubarb setup uses a different viseme set/order ===
VISEMES = ["A", "B", "C", "D", "E", "F", "G", "H", "X"]
VI2IDX = {v: i for i, v in enumerate(VISEMES)}
def find_wavs(root: Path) -> List[Path]:
return sorted([p for p in root.rglob("*.wav") if p.is_file()])
def run_rhubarb(wav_path: Path, rhubarb_path: str, json_out: Path) -> None:
json_out.parent.mkdir(parents=True, exist_ok=True)
cmd = [rhubarb_path, "-f", "json", "-o", str(json_out), str(wav_path)]
# You may add flags like: "--datacost 1.0" or "--extendedShapes" if desired.
completed = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
if completed.returncode != 0 or not json_out.exists():
raise RuntimeError(
f"Rhubarb failed for {wav_path}\nSTDOUT:\n{completed.stdout}\nSTDERR:\n{completed.stderr}"
)
def load_mouth_cues(json_path: Path) -> List[Dict[str, Any]]:
with open(json_path, "r", encoding="utf-8") as f:
data = json.load(f)
# Rhubarb JSON typically has {"mouthCues": [{"start":..,"end":..,"value":"A"}, ...]}
cues = data["mouthCues"] if "mouthCues" in data else data
return cues
def time_to_frame_idx(t_sec: float, hop_sec: float) -> int:
# Frame index for frame whose "start" is at t_sec (STFT hop grid)
# We align labels to frames whose start times are k * hop_sec
return int(math.floor(t_sec / hop_sec + 1e-8))
def build_frame_labels_from_cues(
cues: List[Dict[str, Any]],
num_frames: int,
hop_sec: float,
) -> np.ndarray:
"""
Convert interval cues to frame labels aligned to frames starting at k*hop_sec.
For each frame k, with frame time t = k*hop_sec, we assign the cue whose [start, end)
contains t + epsilon. Default to 'X' if none covers.
This yields a strictly causal alignment: label for frame k depends on cue at that time.
"""
labels = np.full((num_frames,), fill_value=VI2IDX["X"], dtype=np.int64)
# Build an efficient pointer sweep over sorted cues
sorted_cues = sorted(cues, key=lambda c: c["start"])
j = 0
for k in range(num_frames):
t = k * hop_sec # start time of frame k
# advance j while cue ends before t
while j < len(sorted_cues) and sorted_cues[j].get("end", 1e9) <= t:
j += 1
# check current cue covers t
if j < len(sorted_cues):
c = sorted_cues[j]
if c["start"] <= t < c.get("end", 1e9):
vis = c["value"]
if vis in VI2IDX:
labels[k] = VI2IDX[vis]
else:
# Unknown label falls back to rest
labels[k] = VI2IDX["X"]
return labels
def main():
ap = argparse.ArgumentParser()
ap.add_argument("--wavs_dir", type=str, required=True, help="Root directory containing WAV files")
ap.add_argument("--out_dir", type=str, required=True, help="Output dataset directory")
ap.add_argument("--rhubarb_path", type=str, default="rhubarb", help="Path to Rhubarb binary")
ap.add_argument("--sr", type=int, default=16000, help="Target sample rate for consistent framing")
ap.add_argument("--win_length_ms", type=float, default=25.0, help="STFT window length (ms)")
ap.add_argument("--hop_length_ms", type=float, default=10.0, help="STFT hop length (ms)")
ap.add_argument("--overwrite", action="store_true", help="Overwrite existing JSONs/labels")
args = ap.parse_args()
wavs_dir = Path(args.wavs_dir).resolve()
out_dir = Path(args.out_dir).resolve()
align_dir = out_dir / "alignments"
align_dir.mkdir(parents=True, exist_ok=True)
manifest_path = out_dir / "manifest.jsonl"
win_length = int(round(args.win_length_ms * 1e-3 * args.sr))
hop_length = int(round(args.hop_length_ms * 1e-3 * args.sr))
hop_sec = hop_length / args.sr
wav_paths = find_wavs(wavs_dir)
if not wav_paths:
raise SystemExit(f"No WAV files found under {wavs_dir}")
if manifest_path.exists() and not args.overwrite:
print(f"[INFO] {manifest_path} exists. Appending new entries (use --overwrite to recreate).")
with open(manifest_path, "w" if args.overwrite else "a", encoding="utf-8") as man_f:
for wav in wav_paths:
rel_audio = os.path.relpath(wav, start=out_dir)
base = wav.stem
rhubarb_json = align_dir / f"{base}.rhubarb.json"
alignment_json = align_dir / f"{base}.alignment.json"
if (not rhubarb_json.exists()) or args.overwrite:
print(f"[Rhubarb] {wav.name}")
run_rhubarb(wav, args.rhubarb_path, rhubarb_json)
else:
print(f"[SKIP Rhubarb] {wav.name} (exists)")
# Load audio duration and samplerate using soundfile (no full load)
try:
info = sf.info(str(wav))
except RuntimeError as e:
raise SystemExit(f"Failed to read audio info for {wav}: {e}")
orig_sr = info.samplerate
num_frames_audio = info.frames
duration_sec = num_frames_audio / float(orig_sr)
# Compute number of STFT frames at target SR/hop/window
# Resampling does not change duration
duration_at_target = duration_sec
# Valid STFT frames start at t where t + win_length_sec <= duration
win_sec = win_length / args.sr
if duration_at_target < win_sec:
print(f"[WARN] {wav.name} shorter than window; skipping.")
continue
max_k = math.floor((duration_at_target - win_sec) / hop_sec)
num_feat_frames = max_k + 1
cues = load_mouth_cues(rhubarb_json)
labels = build_frame_labels_from_cues(cues, num_feat_frames, hop_sec)
# Save alignment
alignment_payload = {
"audio_path": rel_audio.replace("\\", "/"),
"sample_rate_target": args.sr,
"win_length_ms": args.win_length_ms,
"hop_length_ms": args.hop_length_ms,
"n_visemes": len(VISEMES),
"viseme_list": VISEMES,
"mouth_cues": cues,
"num_feature_frames": int(num_feat_frames),
"frame_labels": labels.tolist(),
}
with open(alignment_json, "w", encoding="utf-8") as f:
json.dump(alignment_payload, f, ensure_ascii=False, indent=2)
# Write manifest line
man_f.write(json.dumps({
"alignment_path": os.path.relpath(alignment_json, start=out_dir).replace("\\", "/")
}) + "\n")
# Save viseme map for reference
with open(out_dir / "viseme_map.json", "w", encoding="utf-8") as f:
json.dump({v: i for i, v in enumerate(VISEMES)}, f, indent=2)
print("\n[Done] Alignments and manifest created.")
print(f" - Manifest: {manifest_path}")
print(f" - Alignments: {align_dir}")
if __name__ == "__main__":
main()
- Downloads last month
- 231