| 94 | } |
| 95 | } |
| 96 | |
| 97 | bool route_matches_task(const Vevo2RouteKind route, runtime::VoiceTaskKind task) { |
| 98 | switch (task) { |
| 99 | case runtime::VoiceTaskKind::Tts: |
| 100 | return route == Vevo2RouteKind::ZeroShotTts || |
| 101 | route == Vevo2RouteKind::TextToSinging || |
| 102 | route == Vevo2RouteKind::Svs; |
| 103 | case runtime::VoiceTaskKind::VoiceConversion: |
| 104 | return route == Vevo2RouteKind::StylePreservedVoiceConversion || |
| 105 | route == Vevo2RouteKind::StyleConvertedVoiceConversion; |
| 106 | case runtime::VoiceTaskKind::SpeechToSpeech: |
| 107 | return route == Vevo2RouteKind::Editing; |
| 108 | case runtime::VoiceTaskKind::Svc: |
| 109 | return route == Vevo2RouteKind::StylePreservedSingingConversion || |
| 110 | route == Vevo2RouteKind::StyleConvertedSingingConversion || |
| 111 | route == Vevo2RouteKind::SingingStyleConversion || |
| 112 | route == Vevo2RouteKind::MelodyControl; |