mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-13 06:01:37 +00:00
Trim whitespace from transcribed text in VoiceRecorder
This commit is contained in:
parent
7868e430ec
commit
a465f1fed4
@ -250,6 +250,9 @@ public partial class VoiceRecorder : MSGComponentBase
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove trailing and leading whitespace:
|
||||||
|
transcribedText = transcribedText.Trim();
|
||||||
|
|
||||||
// Replace line breaks with spaces:
|
// Replace line breaks with spaces:
|
||||||
transcribedText = transcribedText.Replace("\r", " ").Replace("\n", " ");
|
transcribedText = transcribedText.Replace("\r", " ").Replace("\n", " ");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user