MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / default_route_for_task

Function default_route_for_task

src/models/vevo2/session.cpp:96–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95}
96
97bool 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;

Callers 1

make_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected