Function
modelToFeature
(model: ElevenLabsAudioModel | undefined)
Source from the content-addressed store, hash-verified
| 9 | // only in which `music_v1` / `eleven_text_to_sound_v*` model the |
| 10 | // elevenlabs branch hardcodes. |
| 11 | function modelToFeature(model: ElevenLabsAudioModel | undefined): Feature { |
| 12 | if ( |
| 13 | model === 'eleven_text_to_sound_v1' || |
| 14 | model === 'eleven_text_to_sound_v2' |
| 15 | ) { |
| 16 | return 'sound-effects' |
| 17 | } |
| 18 | return 'audio-gen' |
| 19 | } |
| 20 | |
| 21 | export const Route = createFileRoute('/api/audio/stream')({ |
| 22 | server: { |
Tested by
no test coverage detected