How to make a function like IsWordPronounceable (SomeWord: String): boolean;

I would like to make the function IsWordPronounceable (SomeWord: String): boolean; English I work with SAPI Speech Recognition and I need this feature. I am using a delphi compiler, C / C # / C ++ or any language is ok .. please help. I do not know how to start ...

from the very beginning, I thought adding a grammar rule could solve the problem. the script selects the text that is communicated to the user. but the engine cannot recognize words that are not being executed.

+3
source share
4 answers

. , , - .

( , - , "" ). 3- . , "", "dic", "ict", "cti", "tio", "ion", "ona", "nar" "ary". , , . - :

"dic" → 36365
"ict" → 2721
"cti" → 532

... , . , , .

, IsWordPronounceable :

bool IsWordPronounceable(string word)
{
    string[] threeLetterBlocks = BreakIntoThreeLetterBlocks(word);
    foreach(string block in threeLetterBlocks)
    {
        if (blockFrequency[block] < THRESHOLD)
            return false;
    }
    return true;
}

, , "". THRESHOLD - , , 2 3 4, .. -, .

+4

( , ): . ?
, ( ), , .

+1

. , , , , . , Acapela.

, .

  • / ,
  • , ,

, codeka, , . , , linguistics.

0

, , , . . .

If you only want to check the correctness of the word (I mean not speech, but only checking the authenticity of the word) than the answer provided by codeka is pretty cool. You can check this from a dictionary of a specific language.

thank.

-2
source

Source: https://habr.com/ru/post/1747300/


All Articles