added an extra replace for % to percent

This commit is contained in:
erew123 authored and GitHub committed 2024-01-02 20:37:27 +00:00
1 parent e452a926f2
commit 3b5c4b9b68
1 file changed
+2 -1
+2 -1
View File
@@ -414,6 +414,7 @@
// Get and clean the text input from the textarea
let textInput = formData.get('text');
let cleanedText = textInput.replace(/ \- | \– /g, ' '); // Replace hyphens
cleanedText = cleanedText.replace(/%/g, " percent");
cleanedText = cleanedText.replace(/([!?.])\1+/g, '$1');
cleanedText = cleanedText.replace(/[^a-zA-Z0-9\s\.,;:!?\-\'"]/g, '');
cleanedText = cleanedText.replace(/\n+/g, ' ');
@@ -476,7 +477,7 @@
is
<span style="color: #3366ff;">22050Hz</span>, <span style="color: #3366ff;">Mono</span>, <span
style="color: #3366ff;">16 bit</span> and between 6 to 30 seconds long, though 8 to 10 seconds is usually
good enough. The model can handle up to a 30 second samples, however I've not noticed any improvement in voice
good enough. The model can handle up to 30 second samples, however I've not noticed any improvement in voice
output from a much longer clips.
</p>
<p style="padding-left: 30px; text-align: justify;">You want to find a nice clear selection of audio, so lets say