Improve phone ambience and dialogue flow; keep stairwell intact
This commit is contained in:
@@ -39,7 +39,7 @@ directions = {
|
||||
"signal_bad": ("concerned", "Проверяет слышимость, не кричит."),
|
||||
"after_alive": ("weakly", "Короткий ответ после удара, без победной интонации."),
|
||||
"after_call": ("trembling voice", "Зовёт маму всё тише; не истерика."),
|
||||
"stairs_m": ("afraid", "Факт о завале, затем тихое признание страха."),
|
||||
"stairs_m": ("afraid", "Лестница не разрушена: мама боится тёмного пролёта и одиночества."),
|
||||
"side_try_m": ("strained", "Разбирается с заевшей дверью; небольшой проблеск надежды."),
|
||||
"neighbor_m": ("sad", "Никто не отвечает; бытовое воспоминание о соседке."),
|
||||
"speak_here_m": ("reassured", "Ей легче от одной простой просьбы."),
|
||||
@@ -47,6 +47,12 @@ directions = {
|
||||
"speak_love_m": ("warmly", "Повторяет ответ, чтобы дочь точно услышала."),
|
||||
}
|
||||
|
||||
for key, tag in {'intro_flower_k':'warmly','intro_flower_m':'warmly',
|
||||
'intro_paper_k':'gently amused','intro_paper_m':'warmly',
|
||||
'intro_stay_k':'softly','intro_stay_m':'softly',
|
||||
'intro_hear_k':'reassuring','intro_hear_m':'warmly'}.items():
|
||||
directions[key] = (tag, 'Короткий живой ответ дочери или маме, без затянутых пауз.')
|
||||
|
||||
katya_opening = ["warmly", "shaken", "urgent", "focused", "focused",
|
||||
"concerned", "steady", "concerned", "tired", "softly"]
|
||||
mother_opening = ["warmly", "concerned", "focused", "focused", "cautiously",
|
||||
@@ -87,7 +93,7 @@ for key, line in story["lines"].items():
|
||||
pronunciation=used, tts_text=f"[{tag}] {text}"))
|
||||
|
||||
target = ROOT / "voiceover/performance.json"
|
||||
target.write_text(json.dumps(dict(version="0.2.2", pronunciation=pronunciation, lines=score), ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
|
||||
target.write_text(json.dumps(dict(version="0.2.3", pronunciation=pronunciation, lines=score), ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
|
||||
work = ROOT / "builds/carol"
|
||||
work.mkdir(parents=True, exist_ok=True)
|
||||
mother = [line for line in score if line["speaker"] == "Мама"]
|
||||
@@ -97,4 +103,4 @@ for name, batch in [("mother_a", mother[:27]), ("mother_b", mother[27:]), ("katy
|
||||
(work / (name + "_prompt.txt")).write_text("\n[long pause]\n".join(line["tts_text"] for line in batch), encoding="utf-8")
|
||||
print(name, len(batch), "lines", sum(len(line["tts_text"]) for line in batch), "characters")
|
||||
|
||||
assert len(score) == 102 and len(mother) == 54 and len(daughter) == 48
|
||||
assert len(score) == 110 and len(mother) == 58 and len(daughter) == 52
|
||||
|
||||
Reference in New Issue
Block a user