chore: format audioAsVoice updates
Co-authored-by: Manuel Hettich <17690367+ManuelHettich@users.noreply.github.com>
This commit is contained in:
committed by
Peter Steinberger
parent
8c7d1781bc
commit
5fedfd8d15
@@ -135,7 +135,7 @@ export function splitMediaFromOutput(raw: string): {
|
||||
if (media.length === 0) {
|
||||
const result: ReturnType<typeof splitMediaFromOutput> = {
|
||||
// Return cleaned text if we found a media token OR audio tag, otherwise original
|
||||
text: (foundMediaToken || hasAudioAsVoice) ? cleanedText : trimmedRaw,
|
||||
text: foundMediaToken || hasAudioAsVoice ? cleanedText : trimmedRaw,
|
||||
};
|
||||
if (hasAudioAsVoice) result.audioAsVoice = true;
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user