Click here to Skip to main content
15,887,746 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Wordle 884 Pin
Cp-Coder20-Nov-23 0:21
Cp-Coder20-Nov-23 0:21 
GeneralRe: Wordle 884 Pin
Jeremy Falcon20-Nov-23 4:47
professionalJeremy Falcon20-Nov-23 4:47 
GeneralRe: Wordle 884 Pin
ChandraRam20-Nov-23 2:47
ChandraRam20-Nov-23 2:47 
GeneralRe: Wordle 884 (4/6) Pin
Jeremy Falcon20-Nov-23 4:46
professionalJeremy Falcon20-Nov-23 4:46 
GeneralRe: Wordle 884 5/6 Pin
jmaida20-Nov-23 13:51
jmaida20-Nov-23 13:51 
GeneralSpeech to text. Pin
Slow Eddie19-Nov-23 9:18
professionalSlow Eddie19-Nov-23 9:18 
GeneralRe: Speech to text. Pin
Daniel Pfeffer19-Nov-23 9:40
professionalDaniel Pfeffer19-Nov-23 9:40 
GeneralRe: Speech to text. Pin
trønderen19-Nov-23 10:40
trønderen19-Nov-23 10:40 
I saw the first doctor speech-to-text program many years ago. The system recognized medical terms only, not general chitchat. So it was quite reliable, within its domain.

Code also has a limited vocabulary, and a strict grammar. Assuming that the program knows the syntax, and maintains a parse tree and a current position within the parse tree. If a spoken word may have 2+ interpretations, chances are that some of the alternates will give a parse error, so they are not likely to be correct. In most cases, there will be one parseable interpretation.

Your examples:

If there is a declared variable or method named 'SumOfSquares', and it is syntactially legal at the current position, then it is in word. If you are in the middle of a literal string constant, it is more likely to be in three words (with no camel casing).

If your have just opened an 'if' or 'while' condition, then it goes as x==5. If you have just completed the previous statement, and an assignment to x is a legal next statement, then it goes as x = 5.

I am sure you could find examples where two entirely different interpretations of the speech would both be syntactically legal. But for the very most code, that is not the case.

Side remark:
I have a hobby of giving hell to speech synthesis - from text to speech. Even though it turns the problem upside down, there is a lot of common handling. I collect all sorts of words of differing meanings and pronunciations, but written identically. (First time I read "Lead guitar: ..." on a vinyl cover, I thought it was a joke on the bass guitar. Heavy!) I have gathered a handful of sentences which have two very different meanings, both grammatically correct. For 99% of the words, if you analyze the sentence, syntactically and semantically, only one interpretation and pronunciation gives a meaning. (But most speech generators do not sufficiently deep analysis to do it correctly.)
Unfortunately, for this forum: My 'homograph' collection is in Norwegian, so the examples I could present would make no sense to the very most of you.
GeneralRe: Speech to text. Pin
Daniel Pfeffer19-Nov-23 20:48
professionalDaniel Pfeffer19-Nov-23 20:48 
GeneralRe: Speech to text. Pin
sasadler21-Nov-23 7:19
sasadler21-Nov-23 7:19 
GeneralRe: Speech to text. Pin
trønderen21-Nov-23 8:03
trønderen21-Nov-23 8:03 
GeneralRe: Speech to text. Pin
sasadler21-Nov-23 8:53
sasadler21-Nov-23 8:53 
GeneralRe: Speech to text. Pin
Gerry Schmitz20-Nov-23 6:51
mveGerry Schmitz20-Nov-23 6:51 
GeneralRe: Speech to text. Pin
Daniel Pfeffer20-Nov-23 7:05
professionalDaniel Pfeffer20-Nov-23 7:05 
GeneralRe: Speech to text. Pin
Gerry Schmitz20-Nov-23 7:46
mveGerry Schmitz20-Nov-23 7:46 
GeneralRe: Speech to text. Pin
jschell21-Nov-23 5:56
jschell21-Nov-23 5:56 
GeneralRe: Speech to text. Pin
Daniel Pfeffer21-Nov-23 21:28
professionalDaniel Pfeffer21-Nov-23 21:28 
GeneralRe: Speech to text. Pin
Amarnath S19-Nov-23 14:08
professionalAmarnath S19-Nov-23 14:08 
GeneralRe: Speech to text. Pin
BernardIE531719-Nov-23 22:09
BernardIE531719-Nov-23 22:09 
GeneralRe: Speech to text. Pin
Daniel Pfeffer19-Nov-23 22:19
professionalDaniel Pfeffer19-Nov-23 22:19 
GeneralRe: Speech to text. Pin
Amarnath S19-Nov-23 22:26
professionalAmarnath S19-Nov-23 22:26 
GeneralRe: Speech to text. Pin
trønderen19-Nov-23 23:29
trønderen19-Nov-23 23:29 
GeneralRe: Speech to text. Pin
trønderen19-Nov-23 23:39
trønderen19-Nov-23 23:39 
GeneralRe: Speech to text. Pin
trønderen19-Nov-23 23:45
trønderen19-Nov-23 23:45 
GeneralRe: Speech to text. Pin
Jeremy Falcon20-Nov-23 4:53
professionalJeremy Falcon20-Nov-23 4:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.