| 18 | |
| 19 | SeedVcLengthRegulatorConfig parse_length_regulator( |
| 20 | const json::Value & value, |
| 21 | const char * codebook_size_key) { |
| 22 | SeedVcLengthRegulatorConfig config; |
| 23 | config.channels = json::require_i64(value, "channels"); |
| 24 | config.codebook_size = json::require_i64(value, codebook_size_key); |
| 25 | config.is_discrete = json::require_bool(value, "is_discrete"); |
| 26 | config.f0_condition = json::require_bool(value, "f0_condition"); |
| 27 | config.sampling_ratios = json::optional_i64_array(value, "sampling_ratios"); |
| 28 | return config; |
no test coverage detected