Speak every Sun Salutation pose and name the leg in each lunge
Low lunge (right/left by round), knees-chest-chin, cobra and step-forward lines, plus settle-in and closing lines for the guided screen (SunSalutationIntroVoiceKey, SunSalutationClosingVoiceKey). Recorded in 12 languages for both voices; tests check every breath's key, the lunge side against the rig, and that each line is recorded and fits a 6 s breath.
This commit is contained in:
1 parent
dd02f7fd3c
commit
0c86daacf3
23 files changed
+3467
-28
No files matched your search
@@ -8,6 +8,7 @@
|
||||
- Friends, Lists and requests show the profile picture each friend chose in any app, abstract pictures included.
|
||||
- Your profile picture reaches friends the same way as from every other app, and only once you choose one.
|
||||
- Pictures in a practice no longer flicker while its narration downloads.
|
||||
- Sun Salutation narration speaks every pose and names the leg in each lunge.
|
||||
|
||||
## [2.1.61] - 2026-10-29
|
||||
|
||||
|
||||
@@ -8,5 +8,15 @@
|
||||
"sun_salutation_voice_rise",
|
||||
"sun_salutation_voice_mountain_end",
|
||||
"sun_salutation_voice_breathe_in",
|
||||
"sun_salutation_voice_breathe_out"
|
||||
"sun_salutation_voice_breathe_out",
|
||||
"sun_salutation_voice_lunge_right",
|
||||
"sun_salutation_voice_lunge_left",
|
||||
"sun_salutation_voice_knees_chest_chin",
|
||||
"sun_salutation_voice_cobra",
|
||||
"sun_salutation_voice_step_forward_right",
|
||||
"sun_salutation_voice_step_forward_left",
|
||||
"sun_salutation_voice_intro_1",
|
||||
"sun_salutation_voice_intro_2",
|
||||
"sun_salutation_voice_intro_3",
|
||||
"sun_salutation_voice_closing"
|
||||
]
|
||||
File diff suppressed because it is too large.
Load diff
@@ -28,9 +28,9 @@
|
||||
"zh": 1536
|
||||
},
|
||||
"transcription_contexts": {
|
||||
"ja": "These are Japanese yoga Sun Salutation instructions. Vocabulary includes 山のポーズ, プランク, 頭上, 両腕, お尻 and 前屈. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words.",
|
||||
"ko": "These are Korean yoga Sun Salutation instructions. Vocabulary includes 산 자세, 플랭크, 엉덩이 and 들이쉬며/내쉬며. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words.",
|
||||
"zh": "These are Simplified Chinese yoga Sun Salutation instructions. Vocabulary includes 山式、平板式、吸气、呼气、双臂、臀部、屈体. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words."
|
||||
"ja": "These are Japanese yoga Sun Salutation instructions. Vocabulary includes 山のポーズ, プランク, コブラ, マット, 頭上, 両腕, 両手, 右脚, 左脚, 膝, 胸, あご, お尻 and 前屈. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words.",
|
||||
"ko": "These are Korean yoga Sun Salutation instructions. Vocabulary includes 산 자세, 플랭크, 코브라, 매트, 오른쪽/왼쪽, 오른발/왼발, 무릎, 가슴, 턱, 엉덩이 and 들이쉬며/내쉬며. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words.",
|
||||
"zh": "These are Simplified Chinese yoga Sun Salutation instructions. Vocabulary includes 山式、平板式、眼镜蛇式、垫子、吸气、呼气、双臂、双手、右腿、左腿、膝盖、胸部、下巴、臀部、屈体. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words."
|
||||
},
|
||||
"minimum_match": 0.92,
|
||||
"verify_directions": true,
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -28,9 +28,9 @@
|
||||
"zh": 1536
|
||||
},
|
||||
"transcription_contexts": {
|
||||
"ja": "These are Japanese yoga Sun Salutation instructions. Vocabulary includes 山のポーズ, プランク, 頭上, 両腕, お尻 and 前屈. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words.",
|
||||
"ko": "These are Korean yoga Sun Salutation instructions. Vocabulary includes 산 자세, 플랭크, 엉덩이 and 들이쉬며/내쉬며. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words.",
|
||||
"zh": "These are Simplified Chinese yoga Sun Salutation instructions. Vocabulary includes 山式、平板式、吸气、呼气、双臂、臀部、屈体. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words."
|
||||
"ja": "These are Japanese yoga Sun Salutation instructions. Vocabulary includes 山のポーズ, プランク, コブラ, マット, 頭上, 両腕, 両手, 右脚, 左脚, 膝, 胸, あご, お尻 and 前屈. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words.",
|
||||
"ko": "These are Korean yoga Sun Salutation instructions. Vocabulary includes 산 자세, 플랭크, 코브라, 매트, 오른쪽/왼쪽, 오른발/왼발, 무릎, 가슴, 턱, 엉덩이 and 들이쉬며/내쉬며. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words.",
|
||||
"zh": "These are Simplified Chinese yoga Sun Salutation instructions. Vocabulary includes 山式、平板式、眼镜蛇式、垫子、吸气、呼气、双臂、双手、右腿、左腿、膝盖、胸部、下巴、臀部、屈体. Use this only to spell words actually heard. Never fill omitted words or replace other spoken words."
|
||||
},
|
||||
"minimum_match": 0.92,
|
||||
"verify_directions": true,
|
||||
|
||||
@@ -28,3 +28,33 @@ Nadechněte se.
|
||||
[sun_salutation_voice_breathe_out]
|
||||
Vydechněte.
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
Nadechněte se, pravou nohu dejte dozadu a koleno na zem.
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
Nadechněte se, levou nohu dejte dozadu a koleno na zem.
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
Vydechněte a položte kolena, hrudník a bradu.
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
Nadechněte se a zvedněte hrudník do kobry.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
Nadechněte se a pravou nohu přeneste mezi dlaně.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
Nadechněte se a levou nohu přeneste mezi dlaně.
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
Postavte se na přední okraj podložky, chodidla u sebe.
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
Paže nechte volně podél těla.
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
Dýchejte pomalu nosem.
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
Odpočívejte a vnímejte svůj dech.
|
||||
---
|
||||
@@ -28,3 +28,33 @@ Atme ein.
|
||||
[sun_salutation_voice_breathe_out]
|
||||
Atme aus.
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
Atme ein und stell das rechte Bein zurück, das Knie am Boden.
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
Atme ein und stell das linke Bein zurück, das Knie am Boden.
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
Atme aus und senke Knie, Brust und Kinn.
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
Atme ein und hebe die Brust in die Kobra.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
Atme ein und setz den rechten Fuß zwischen die Hände.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
Atme ein und setz den linken Fuß zwischen die Hände.
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
Stell dich vorn auf deine Matte, die Füße zusammen.
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
Lass die Arme locker neben dem Körper.
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
Atme ruhig durch die Nase.
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
Ruh dich aus und spüre deinen Atem.
|
||||
---
|
||||
@@ -28,3 +28,33 @@ Breathe in.
|
||||
[sun_salutation_voice_breathe_out]
|
||||
Breathe out.
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
Breathe in and step your right leg back, knee down.
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
Breathe in and step your left leg back, knee down.
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
Breathe out and lower knees, chest and chin.
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
Breathe in and lift your chest into cobra.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
Breathe in and step your right foot between your hands.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
Breathe in and step your left foot between your hands.
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
Stand at the front of your mat, feet together.
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
Let your arms rest by your sides.
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
Breathe slowly through your nose.
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
Rest here and notice your breath.
|
||||
---
|
||||
@@ -28,3 +28,33 @@ Inhala.
|
||||
[sun_salutation_voice_breathe_out]
|
||||
Exhala.
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
Inhala y lleva la pierna derecha atrás, rodilla al suelo.
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
Inhala y lleva la pierna izquierda atrás, rodilla al suelo.
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
Exhala y baja rodillas, pecho y barbilla.
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
Inhala y eleva el pecho a la cobra.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
Inhala y lleva el pie derecho entre las manos.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
Inhala y lleva el pie izquierdo entre las manos.
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
Ponte de pie al frente de la esterilla, pies juntos.
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
Deja los brazos relajados a los lados.
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
Respira despacio por la nariz.
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
Descansa aquí y observa tu respiración.
|
||||
---
|
||||
@@ -28,3 +28,33 @@ Inspirez.
|
||||
[sun_salutation_voice_breathe_out]
|
||||
Expirez.
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
Inspirez et reculez la jambe droite, genou au sol.
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
Inspirez et reculez la jambe gauche, genou au sol.
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
Expirez et posez genoux, poitrine et menton.
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
Inspirez et soulevez la poitrine en cobra.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
Inspirez et avancez le pied droit entre les mains.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
Inspirez et avancez le pied gauche entre les mains.
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
Placez-vous à l'avant du tapis, pieds joints.
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
Laissez les bras reposer le long du corps.
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
Respirez lentement par le nez.
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
Reposez-vous et observez votre respiration.
|
||||
---
|
||||
@@ -28,3 +28,33 @@ Tarik napas.
|
||||
[sun_salutation_voice_breathe_out]
|
||||
Buang napas.
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
Tarik napas dan langkahkan kaki kanan ke belakang, lutut turun.
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
Tarik napas dan langkahkan kaki kiri ke belakang, lutut turun.
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
Buang napas dan turunkan lutut, dada, dan dagu.
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
Tarik napas dan angkat dada ke pose kobra.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
Tarik napas dan langkahkan kaki kanan di antara tangan.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
Tarik napas dan langkahkan kaki kiri di antara tangan.
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
Berdiri di depan matras, kedua kaki rapat.
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
Biarkan lengan rileks di samping tubuh.
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
Bernapaslah perlahan melalui hidung.
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
Beristirahatlah dan rasakan napas Anda.
|
||||
---
|
||||
@@ -28,3 +28,33 @@ Inspira.
|
||||
[sun_salutation_voice_breathe_out]
|
||||
Espira.
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
Inspira e porta la gamba destra indietro, ginocchio a terra.
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
Inspira e porta la gamba sinistra indietro, ginocchio a terra.
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
Espira e abbassa ginocchia, petto e mento.
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
Inspira e solleva il petto nel cobra.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
Inspira e porta il piede destro tra le mani.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
Inspira e porta il piede sinistro tra le mani.
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
In piedi davanti al tappetino, piedi uniti.
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
Lascia le braccia rilassate lungo i fianchi.
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
Respira lentamente con il naso.
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
Riposa e ascolta il tuo respiro.
|
||||
---
|
||||
@@ -28,3 +28,33 @@
|
||||
[sun_salutation_voice_breathe_out]
|
||||
息を吐いて。
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
息を吸って、右脚を後ろに引き、膝を床へ。
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
息を吸って、左脚を後ろに引き、膝を床へ。
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
息を吐いて、膝、胸、あごを床へ。
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
息を吸って、胸を持ち上げてコブラへ。
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
息を吸って、右足を両手の間へ。
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
息を吸って、左足を両手の間へ。
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
マットの前に立ち、両足を揃えて。
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
腕は体の横で楽にして。
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
鼻からゆっくり呼吸して。
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
ここで休み、呼吸を感じて。
|
||||
---
|
||||
@@ -28,3 +28,33 @@
|
||||
[sun_salutation_voice_breathe_out]
|
||||
숨을 내쉬세요.
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
숨을 들이쉬며 오른쪽 다리를 뒤로, 무릎을 내리세요.
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
숨을 들이쉬며 왼쪽 다리를 뒤로, 무릎을 내리세요.
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
숨을 내쉬며 무릎, 가슴, 턱을 내리세요.
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
숨을 들이쉬며 가슴을 들어 코브라 자세를 하세요.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
숨을 들이쉬며 오른발을 두 손 사이로 옮기세요.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
숨을 들이쉬며 왼발을 두 손 사이로 옮기세요.
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
매트 앞쪽에 서서 두 발을 모으세요.
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
팔은 몸 옆에 편하게 두세요.
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
코로 천천히 숨을 쉬세요.
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
편히 쉬며 호흡을 느껴 보세요.
|
||||
---
|
||||
@@ -28,3 +28,33 @@ Inspire.
|
||||
[sun_salutation_voice_breathe_out]
|
||||
Expire.
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
Inspire e leve a perna direita para trás, joelho no chão.
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
Inspire e leve a perna esquerda para trás, joelho no chão.
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
Expire e desça joelhos, peito e queixo.
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
Inspire e eleve o peito na cobra.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
Inspire e leve o pé direito entre as mãos.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
Inspire e leve o pé esquerdo entre as mãos.
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
Fique em pé na frente do tapete, pés juntos.
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
Deixe os braços relaxados ao lado do corpo.
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
Respire devagar pelo nariz.
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
Descanse e perceba sua respiração.
|
||||
---
|
||||
@@ -28,3 +28,33 @@
|
||||
[sun_salutation_voice_breathe_out]
|
||||
Выдохните.
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
Вдохните и отведите правую ногу назад, колено на пол.
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
Вдохните и отведите левую ногу назад, колено на пол.
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
Выдохните и опустите колени, грудь и подбородок.
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
Вдохните и поднимите грудь в позу кобры.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
Вдохните и поставьте правую стопу между ладонями.
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
Вдохните и поставьте левую стопу между ладонями.
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
Встаньте у переднего края коврика, стопы вместе.
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
Руки свободно опущены вдоль тела.
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
Дышите медленно через нос.
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
Отдохните и понаблюдайте за дыханием.
|
||||
---
|
||||
@@ -28,3 +28,33 @@
|
||||
[sun_salutation_voice_breathe_out]
|
||||
呼气。
|
||||
---
|
||||
[sun_salutation_voice_lunge_right]
|
||||
吸气,右腿向后迈,膝盖落地。
|
||||
---
|
||||
[sun_salutation_voice_lunge_left]
|
||||
吸气,左腿向后迈,膝盖落地。
|
||||
---
|
||||
[sun_salutation_voice_knees_chest_chin]
|
||||
呼气,膝盖、胸部和下巴落地。
|
||||
---
|
||||
[sun_salutation_voice_cobra]
|
||||
吸气,胸部上抬成眼镜蛇式。
|
||||
---
|
||||
[sun_salutation_voice_step_forward_right]
|
||||
吸气,右脚向前迈到双手之间。
|
||||
---
|
||||
[sun_salutation_voice_step_forward_left]
|
||||
吸气,左脚向前迈到双手之间。
|
||||
---
|
||||
[sun_salutation_voice_intro_1]
|
||||
站在垫子前端,双脚并拢。
|
||||
---
|
||||
[sun_salutation_voice_intro_2]
|
||||
双臂自然垂放在身体两侧。
|
||||
---
|
||||
[sun_salutation_voice_intro_3]
|
||||
用鼻子缓慢呼吸。
|
||||
---
|
||||
[sun_salutation_voice_closing]
|
||||
在这里休息,感受你的呼吸。
|
||||
---
|
||||
@@ -110,6 +110,12 @@ sun-salutation-artwork-test: $(ZI2C_BIN)
|
||||
|
||||
test: sun-salutation-artwork-test
|
||||
|
||||
.PHONY: sun-salutation-voice-test
|
||||
sun-salutation-voice-test: $(ZI2C_BIN)
|
||||
sh tests/practice_figure_test.sh $(ZIRAN_BUILD_DIR)/bin tests/sun_salutation_voice_behavior.zi
|
||||
|
||||
test: sun-salutation-voice-test
|
||||
|
||||
practice-narration-keys-test:
|
||||
python3 tests/practice_narration_keys_test.py
|
||||
|
||||
|
||||
@@ -20,30 +20,59 @@ SunSalutationPoseName :: (step: s32) -> string {
|
||||
}
|
||||
|
||||
// The spoken line for each step's breath. Steps 3 and 10 share the fold;
|
||||
// plank steps back on the out-breath and holds on the in-breath. The
|
||||
// lunges, knees, chest and chin, and cobra have no recorded line yet, so
|
||||
// they say only the breath.
|
||||
// plank steps back on the out-breath and holds on the in-breath. The first
|
||||
// round steps the right leg back into the lunge and brings the right foot
|
||||
// forward again; every other round the left leg leads.
|
||||
sun_salutation_voice_keys: [12]string = string.[
|
||||
"sun_salutation_voice_mountain_start", "sun_salutation_voice_salute",
|
||||
"sun_salutation_voice_fold", "",
|
||||
"sun_salutation_voice_plank", "",
|
||||
"", "sun_salutation_voice_downward_dog",
|
||||
"", "sun_salutation_voice_fold",
|
||||
"sun_salutation_voice_fold", "sun_salutation_voice_lunge_right",
|
||||
"sun_salutation_voice_plank", "sun_salutation_voice_knees_chest_chin",
|
||||
"sun_salutation_voice_cobra", "sun_salutation_voice_downward_dog",
|
||||
"sun_salutation_voice_step_forward_right", "sun_salutation_voice_fold",
|
||||
"sun_salutation_voice_rise", "sun_salutation_voice_mountain_end"
|
||||
];
|
||||
|
||||
SUN_SALUTATION_LUNGE_BACK_STEP :: 3
|
||||
SUN_SALUTATION_LUNGE_FORWARD_STEP :: 8
|
||||
|
||||
SunSalutationVoiceKey :: (state: SunSalutationPracticeState) -> string {
|
||||
step := SalutationClamp(state.step, 0, SUN_SALUTATION_STEP_COUNT - 1)
|
||||
if step == SUN_SALUTATION_PLANK_STEP &&
|
||||
SalutationBreathAt(state).direction == SUN_SALUTATION_BREATH_IN {
|
||||
return "sun_salutation_voice_plank_hold"
|
||||
}
|
||||
if sun_salutation_voice_keys[step].count == 0 {
|
||||
return SunSalutationBreathVoiceKey(state)
|
||||
if SalutationOtherSide(state) {
|
||||
if step == SUN_SALUTATION_LUNGE_BACK_STEP {
|
||||
return "sun_salutation_voice_lunge_left"
|
||||
}
|
||||
if step == SUN_SALUTATION_LUNGE_FORWARD_STEP {
|
||||
return "sun_salutation_voice_step_forward_left"
|
||||
}
|
||||
}
|
||||
return sun_salutation_voice_keys[step]
|
||||
}
|
||||
|
||||
// Settling in before the first breath: the place on the mat, the arms,
|
||||
// then the breath.
|
||||
SUN_SALUTATION_INTRO_LINE_COUNT :: 3
|
||||
sun_salutation_intro_voice_keys: [3]string = string.[
|
||||
"sun_salutation_voice_intro_1", "sun_salutation_voice_intro_2",
|
||||
"sun_salutation_voice_intro_3"
|
||||
];
|
||||
|
||||
// The `index`th settling-in line, from 0, or "" past the last one.
|
||||
SunSalutationIntroVoiceKey :: (index: s32) -> string {
|
||||
if index < 0 || index >= SUN_SALUTATION_INTRO_LINE_COUNT {
|
||||
return ""
|
||||
}
|
||||
return sun_salutation_intro_voice_keys[index]
|
||||
}
|
||||
|
||||
// The line spoken once the last round ends.
|
||||
SunSalutationClosingVoiceKey :: () -> string {
|
||||
return "sun_salutation_voice_closing"
|
||||
}
|
||||
|
||||
// Only the breath, for a tempo too quick for the whole line.
|
||||
SunSalutationBreathVoiceKey :: (state: SunSalutationPracticeState) -> string {
|
||||
if SalutationBreathAt(state).direction == SUN_SALUTATION_BREATH_IN {
|
||||
|
||||
@@ -23,12 +23,33 @@ for broken in (b'TCH3' + course[4:], course[:-1], b'TCH2\xff\xff\xff\xff'):
|
||||
print(f'All {len(expected)} shipped course narration lines are covered; unspoken labels are excluded')
|
||||
|
||||
# Sun Salutation speaks one line per breath, each recorded in every voice.
|
||||
import importlib.util
|
||||
import re
|
||||
labels = (ROOT / 'src/practices/sun_salutation/sun_salutation_labels.zi').read_text()
|
||||
spoken = set(re.findall(r'"(sun_salutation_voice_[a-z_]+)"', labels))
|
||||
spoken = set(re.findall(r'"(sun_salutation_voice_[a-z0-9_]+)"', labels))
|
||||
content = json.loads((ROOT / 'apps/practice/content.json').read_text())
|
||||
rules = (ROOT / 'src/practices/sun_salutation/sun_salutation_rules.zi').read_text()
|
||||
breath = int(re.search(r'SUN_SALUTATION_DEFAULT_END_SECONDS :: (\d+)', rules)[1])
|
||||
speech_spec = importlib.util.spec_from_file_location('narration', ROOT / 'scripts/generate-lumi-guide-narration.py')
|
||||
narration = importlib.util.module_from_spec(speech_spec)
|
||||
speech_spec.loader.exec_module(narration)
|
||||
entries, text_hash = narration.entries, narration.text_hash
|
||||
codes = narration.locale_codes()
|
||||
assert len(codes) >= 12
|
||||
for name in ('sunsalutation', 'sunsalutation_male'):
|
||||
speech = json.loads((ROOT / content['narration'][name]['config']).read_text())
|
||||
lines = json.loads((ROOT / speech['keys_file']).read_text())
|
||||
assert set(lines) == spoken, f'{name}: narration lines differ from the spoken keys'
|
||||
print(f'All {len(spoken)} Sun Salutation breath lines are recorded in both voices')
|
||||
# Each line is written in every language, recorded from that text, and
|
||||
# fits the shortest default breath with the player's 0.2 s margin.
|
||||
receipt = json.loads((ROOT / content['narration'][name]['receipt']).read_text())['clips']
|
||||
for code in codes:
|
||||
texts = entries(ROOT / content['narration'][name]['text_directory'] / f'{code}.txt')
|
||||
for key in spoken:
|
||||
text = texts.get(key, '').strip()
|
||||
assert text, f'{code}/{key}: no {name} narration text'
|
||||
clip = receipt.get(f'{code}/{key}')
|
||||
assert clip and clip['text_sha256'] == text_hash(speech, text), f'{code}/{key}: {name} recording is missing or older than its text'
|
||||
assert media_path(clip['file']).is_file(), f'{code}/{key}: {name} clip file is missing'
|
||||
assert clip['seconds'] + 0.2 <= breath, f'{code}/{key}: {name} line is {clip["seconds"]} s, longer than a {breath} s breath'
|
||||
print(f'All {len(spoken)} Sun Salutation lines are recorded in {len(codes)} languages and both voices, each within a {breath} s breath')
|
||||
@@ -0,0 +1,132 @@
|
||||
// Every breath of Sun Salutation speaks a line, and the lunges name the leg
|
||||
// that actually moves. tests/practice_narration_keys_test.py checks that each
|
||||
// of these lines is recorded in every language and fits the breath.
|
||||
#import, file "../src/practices/sun_salutation/sun_salutation_labels.zi";
|
||||
#import, file "../src/practices/sun_salutation/sun_salutation_pose.zi";
|
||||
#import, file "../src/practices/sun_salutation/sun_salutation_rules.zi";
|
||||
|
||||
// The labels' locale lookup links against the embedded assets; this test
|
||||
// reads no locale text.
|
||||
#program_export "asset_entry_at"
|
||||
asset_entry_at :: (index: usize) -> *void {
|
||||
return null
|
||||
}
|
||||
#program_export "asset_entry_total"
|
||||
asset_entry_total :: () -> usize {
|
||||
return 0
|
||||
}
|
||||
|
||||
// The state `breath` breaths into `step` of the `round`th round, from 0.
|
||||
VoiceStateAt :: (round: s32, step: s32, breath: s32) -> SunSalutationPracticeState {
|
||||
state := SalutationInit(SunSalutationPracticeState.{})
|
||||
state.repetition = round
|
||||
state.step = step
|
||||
state.step_ticks = breath * SalutationBreathSeconds(state) * 60 + 1
|
||||
return state
|
||||
}
|
||||
|
||||
// The line expected for a breath, written out pose by pose.
|
||||
ExpectedVoiceKey :: (round: s32, step: s32, breath: s32) -> string {
|
||||
other := round % 2 == 1
|
||||
if step == 0 {
|
||||
return "sun_salutation_voice_mountain_start"
|
||||
}
|
||||
if step == 1 {
|
||||
return "sun_salutation_voice_salute"
|
||||
}
|
||||
if step == 2 || step == 9 {
|
||||
return "sun_salutation_voice_fold"
|
||||
}
|
||||
if step == 3 {
|
||||
return ifx other then "sun_salutation_voice_lunge_left" else "sun_salutation_voice_lunge_right"
|
||||
}
|
||||
if step == 4 {
|
||||
return ifx breath == 0 then "sun_salutation_voice_plank" else "sun_salutation_voice_plank_hold"
|
||||
}
|
||||
if step == 5 {
|
||||
return "sun_salutation_voice_knees_chest_chin"
|
||||
}
|
||||
if step == 6 {
|
||||
return "sun_salutation_voice_cobra"
|
||||
}
|
||||
if step == 7 {
|
||||
return "sun_salutation_voice_downward_dog"
|
||||
}
|
||||
if step == 8 {
|
||||
return ifx other then "sun_salutation_voice_step_forward_left" else "sun_salutation_voice_step_forward_right"
|
||||
}
|
||||
if step == 10 {
|
||||
return "sun_salutation_voice_rise"
|
||||
}
|
||||
return "sun_salutation_voice_mountain_end"
|
||||
}
|
||||
|
||||
CheckBreathLines :: () -> s32 {
|
||||
for round: cast(s32)0..3 {
|
||||
for step: cast(s32)0..SUN_SALUTATION_STEP_COUNT - 1 {
|
||||
for breath: cast(s32)0..SalutationStepBreaths(step) - 1 {
|
||||
key := SunSalutationVoiceKey(VoiceStateAt(round, step, breath))
|
||||
if key.count == 0 || key != ExpectedVoiceKey(round, step, breath) {
|
||||
return 100 + round * 100 + step * 2 + breath
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Side 1 of the rig is the right: the first round's lunge has the right
|
||||
// foot back, and the next round's has the left.
|
||||
CheckLungeSides :: () -> s32 {
|
||||
first := SunSalutationPose(SUN_SALUTATION_LUNGE_BACK_STEP, false)
|
||||
if first.feet[1].z >= first.feet[0].z {
|
||||
return 501
|
||||
}
|
||||
other := SunSalutationPose(SUN_SALUTATION_LUNGE_BACK_STEP, true)
|
||||
if other.feet[0].z >= other.feet[1].z {
|
||||
return 502
|
||||
}
|
||||
// Stepping forward from downward dog brings that same foot forward:
|
||||
// the other knee is the one left down.
|
||||
forward := SunSalutationPose(SUN_SALUTATION_LUNGE_FORWARD_STEP, false)
|
||||
if forward.feet[1].z <= forward.feet[0].z {
|
||||
return 503
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
CheckIntroAndClosing :: () -> s32 {
|
||||
if SUN_SALUTATION_INTRO_LINE_COUNT < 2 {
|
||||
return 601
|
||||
}
|
||||
for index: cast(s32)0..SUN_SALUTATION_INTRO_LINE_COUNT - 1 {
|
||||
if SunSalutationIntroVoiceKey(index).count == 0 {
|
||||
return 602
|
||||
}
|
||||
}
|
||||
if SunSalutationIntroVoiceKey(-1).count != 0 ||
|
||||
SunSalutationIntroVoiceKey(SUN_SALUTATION_INTRO_LINE_COUNT).count != 0 {
|
||||
return 603
|
||||
}
|
||||
if SunSalutationClosingVoiceKey() != "sun_salutation_voice_closing" {
|
||||
return 604
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
#program_export
|
||||
Answer :: () -> s32 {
|
||||
failure := CheckBreathLines()
|
||||
if failure != 0 {
|
||||
return failure
|
||||
}
|
||||
failure = CheckLungeSides()
|
||||
if failure != 0 {
|
||||
return failure
|
||||
}
|
||||
failure = CheckIntroAndClosing()
|
||||
if failure != 0 {
|
||||
return failure
|
||||
}
|
||||
return 42
|
||||
}
|
||||
+10
-10
@@ -93,15 +93,6 @@
|
||||
"source": true,
|
||||
"url": "https://github.com/LoupVaillant/Monocypher.git"
|
||||
},
|
||||
{
|
||||
"commit": "8b81994303400255ddb0ee2da49044dbaef4397f",
|
||||
"dependencies": {},
|
||||
"id": "p9079dde0fcc11248",
|
||||
"name": "practices",
|
||||
"ref": "master",
|
||||
"source": true,
|
||||
"url": "https://github.com/waozixyz/practices.git"
|
||||
},
|
||||
{
|
||||
"commit": "5b67236a8e355e67ce4f8cc0389b9ce3805b874b",
|
||||
"dependencies": {"crypto": "pc23fbf455e97614d", "kryon": "p43481d12b77897ce"},
|
||||
@@ -151,10 +142,19 @@
|
||||
"ref": "master",
|
||||
"source": true,
|
||||
"url": "https://github.com/sqlite/sqlite.git"
|
||||
},
|
||||
{
|
||||
"commit": "6e98d8486fe560bde76cb0ce8b841a3884cf42da",
|
||||
"dependencies": {},
|
||||
"id": "pf4bd8f55c0c2ab4b",
|
||||
"name": "practices",
|
||||
"ref": "master",
|
||||
"source": true,
|
||||
"url": "https://github.com/waozixyz/practices.git"
|
||||
}
|
||||
],
|
||||
"root": {
|
||||
"dependencies": {"apps": "p9928fc15e7b93288", "crypto": "pc23fbf455e97614d", "curl": "pd4bcd11b7d623073", "daochi_client": "p7de54c8ad98fe034", "entity": "p485b3680dbdbbc93", "game2d": "p20eb23d3e6db3711", "kryon": "p43481d12b77897ce", "kss": "p1b13dda539ed2a39", "liboqs": "p1aaef6f156781e69", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "plot": "pab5377a2950368a2", "practices": "p9079dde0fcc11248", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "peaa43c4b7ef72edf"},
|
||||
"dependencies": {"apps": "p9928fc15e7b93288", "crypto": "pc23fbf455e97614d", "curl": "pd4bcd11b7d623073", "daochi_client": "p7de54c8ad98fe034", "entity": "p485b3680dbdbbc93", "game2d": "p20eb23d3e6db3711", "kryon": "p43481d12b77897ce", "kss": "p1b13dda539ed2a39", "liboqs": "p1aaef6f156781e69", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "plot": "pab5377a2950368a2", "practices": "pf4bd8f55c0c2ab4b", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "peaa43c4b7ef72edf"},
|
||||
"name": "Inbe"
|
||||
},
|
||||
"toolchain": {
|
||||
|
||||
Reference in new issue
Block a user