| 1128 | auto prosody_tokens = encode_chromagram_features( |
| 1129 | compute_vevo2_chromagram( |
| 1130 | prosody_audio, |
| 1131 | prosody_frames, |
| 1132 | frame_len_ratio, |
| 1133 | generation.use_pitch_shift, |
| 1134 | generation.use_pitch_shift ? generation.prosody_shift_steps : 0), |
| 1135 | static_cast<int64_t>(static_cast<double>(prosody_frames) * frame_len_ratio)); |
| 1136 | if (!style_ref_audio.has_value()) { |
| 1137 | return prosody_tokens; |
| 1138 | } |
| 1139 | |
| 1140 | const int64_t style_frames = vevo2_frame_count_24k(*style_ref_audio); |