1 |
Wow, thanks. Didn't expect it to be part of infra, never would have looked there.
|
1 |
Wow, thanks. Didn't expect it to be part of infra, never would have looked there.
|
2 |
<code>{{{
|
2 |
<code>{{{
|
3 |
protected static string Sanitize(string input)
|
3 |
protected static string Sanitize(string input)
|
4 |
{
|
4 |
{
|
5 |
if (string.IsNullOrEmpty(input)) return input;
|
5 |
if (string.IsNullOrEmpty(input)) return input;
|
6 |
return
|
6 |
return
|
7 |
new string(
|
7 |
new string(
|
8 |
input.ToCharArray()
|
8 |
input.ToCharArray()
|
9 |
.Where(c => (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c ==' ' || (c == '-') || (c == '?') || (c == '!'))
|
9 |
.Where(c => (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c ==' ' || (c == '-') || (c == '?') || (c == '!'))
|
10 |
.ToArray());
|
10 |
.ToArray());
|
11 |
}
|
11 |
}
|
12 |
}}}</code>
|
12 |
}}}</code>
|
13 |
What would be the danger of changing the whole thing to just
|
13 |
What would be the danger of changing the whole thing to just
|
14 |
<code>{{{
|
14 |
<code>{{{
|
15 |
protected static string Sanitize(string input)
|
15 |
protected static string Sanitize(string input)
|
16 |
{
|
16 |
{
|
17 |
return input;
|
17 |
return input;
|
18 |
}
|
18 |
}
|
19 |
}}}</code>..? I mean, yeah, remove it altogether.
|
19 |
}}}</code>..? I mean, yeah, remove it altogether.
|
20 |
\n
|
20 |
\n
|
21 |
Being that it's TTS-specific, I really don't understand the purpose of not allowing everything and the kitchen sink to be passed to the TTS engine. Do I need to open a ticket for Licho to look at it or something?
|
21 |
Being that it's TTS-specific, I really don't understand the purpose of not allowing everything and the kitchen sink to be passed to the TTS engine. Do I need to open a ticket for Licho to look at it or something?
|
|
|
22 |
\n
|
|
|
23 |
@Anagram: Recorded voice always sounds better, IMO. Especially if you have a cute accent...
|