| 428 | }; |
| 429 | return request; |
| 430 | } |
| 431 | |
| 432 | SessionPreparationRequest build_preparation_request(const TaskRequest & request) { |
| 433 | SessionPreparationRequest prep; |
| 434 | prep.options = request.options; |
| 435 | // ⚠ CARRY THE LIST OPTIONS TOO. Preparation decides how the graphs are sized, and a family |
| 436 | // whose work depends on a list option would otherwise size itself for a different request |
| 437 | // than the one run() is handed. For kokoro_tts that was not merely a bad estimate: with the |
| 438 | // phonemes missing here, preparation fell back to the built-in G2P, and a Japanese request |
| 439 | // failed for want of UniDic even though the caller had supplied phonemes precisely so that |
| 440 | // the G2P would never be consulted. |
| 441 | prep.option_arrays = request.option_arrays; |
no test coverage detected