mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-13 02:41: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;
|
||||
}
|
||||
|
||||
// Remove trailing and leading whitespace:
|
||||
transcribedText = transcribedText.Trim();
|
||||
|
||||
// Replace line breaks with spaces:
|
||||
transcribedText = transcribedText.Replace("\r", " ").Replace("\n", " ");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user