Live data from Hacker News

I made a talking emoji using regular emojis and JavaScript

hackernoon.com

51–60 of 63 posts

Re: I made a talking emoji using regular emojis and JavaScript

#51
post #3

I'm Deaf and read lips. Thanks for this extremely intriguing idea to use emoji to depict a talking person visually. You know, some animated films get it right. Sometimes I clearly see utterances like «Thank you!», «Okay», but more often not. Especially older animations don't care and just let the character move the mouth in very simplistic ways: «Babbabbabaa Baababba ba baaa.» Similarly for that emoji. It is moving t…

Interesting, thanks for the insight!

Re: I made a talking emoji using regular emojis and JavaScript

#52

Earlier quoted context omitted.

ycombinator can't: There should be emoji after the colon, I can type them fine in Chrome. Truth be told, they would make up great return values, making yourself indispensable to your employer.

The HN platform deliberately discards characters beyond IIRC 0xFF - it's been a while since I looked at the source, I'm probably wrong about where it cuts off. An odd design choice, but a design choice all the same - it doesn't bear on anything else in any way I can see.

There was a time when people discovered a lot of text renderers break down with lots of stacked combining characters, and people were posting strings to HN that IIRC either drew a stack of accents all the way up and down the page, or crashed the browser.

Maybe that has something to do with the character range limits. Not all non-ASCII is forbidden, though: Français should work AFAIK, and I've seen Chinese and Japanese.

Re: I made a talking emoji using regular emojis and JavaScript

#53
post #25

> an emoji, in reality, looks like this: “\xF0\x9F\x98\x81” … well, that’s one encoding of the UTF-8 encoding of the Unicode code point. > This is because setInterval(_=>{ },99) executes the function every 99ms This is categorically wrong. You can’t trust setInterval to heed your request precisely at all: it’s a request that browsers take as a minimum only. Most browsers will call your function after the number of mi…

Hi Chris, thanks for the corrections, I know you cannot trust the browser, but for the sake of simplicity, and because the purpose of the intro was describing the code I found on the internet, I opt for a simple "this is the trick", doesn't always work, but this is the idea

The problem is that that part is completely wrong and dangerously misleading.

Re: I made a talking emoji using regular emojis and JavaScript

#54
post #3

I'm Deaf and read lips. Thanks for this extremely intriguing idea to use emoji to depict a talking person visually. You know, some animated films get it right. Sometimes I clearly see utterances like «Thank you!», «Okay», but more often not. Especially older animations don't care and just let the character move the mouth in very simplistic ways: «Babbabbabaa Baababba ba baaa.» Similarly for that emoji. It is moving t…

I don't read lips but it's painfully obviously that emoji animation is not right. I seriously looked at it and thought: wow that looks terrible.

Re: I made a talking emoji using regular emojis and JavaScript

#55

Earlier quoted context omitted.

That image does not map to letters, it maps to the phonetic alphabet. English has different phonetics for words when compared to their written counterparts. For example "money" needs to be converted to "mahnee" before being converted to emoji counterpart. Otherwise it is gibberish.

'mah-' is US English, not English :P It's 'mah' in one country. p.s. Seems every day on here I'm reminding people from the US that their country is not the world, their version of English is spoken and spelt in just one country, etc etc etc. Maybe I should give up doing that. The most classic maybe was a linguist (yes, amazing) who on her blog was gloating that her variety of US English was particularly rich, in havi…

"Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize."

Re: I made a talking emoji using regular emojis and JavaScript

#56

Earlier quoted context omitted.

That would be a rabbit hole though, if you consider that Unicode isn't English or even Indo-European centric. *(just another rabbit hole actually, Unicode got plenty of them already)

The entire IPA is available in unicode. You could treat those as ligatures with a special combinator character, which would work a lot like flags, skintones etc work. eg: [special begin character] + NEUTRAL FACE (U+1F610) + [IPA characters] + (special end character) = talking face! hurray! "text engine developers hate him"

Jesus man, have some respect for other humans, and some leniency where it's warranted.

Re: I made a talking emoji using regular emojis and JavaScript

#57

> an emoji, in reality, looks like this: “\xF0\x9F\x98\x81” … well, that’s one encoding of the UTF-8 encoding of the Unicode code point. > This is because setInterval(_=>{ },99) executes the function every 99ms This is categorically wrong. You can’t trust setInterval to heed your request precisely at all: it’s a request that browsers take as a minimum only. Most browsers will call your function after the number of mi…

Besides that 99 % 6 = 3, so if the browser fired the setInterval function precisely every 99 ms, only two emojis would be displayed.

Thanks for noticing, I will update the article

99 % 6 === 3 ((99 % 6) + 99) % 6 === 0 ((((99 % 6) + 99) % 6) + 99) % 6 === 3

Re: I made a talking emoji using regular emojis and JavaScript

#58

Earlier quoted context omitted.

'mah-' is US English, not English :P It's 'mah' in one country. p.s. Seems every day on here I'm reminding people from the US that their country is not the world, their version of English is spoken and spelt in just one country, etc etc etc. Maybe I should give up doing that. The most classic maybe was a linguist (yes, amazing) who on her blog was gloating that her variety of US English was particularly rich, in havi…

Either you don't understand that he means the pheonetic alphabet, or you say money in a way that is foreign to almost any person in the UK as well as the US. Do you say mooney or mohney? If not I think your phoneme almost certainly must be mah.

Hi, sorry about the delay. I don't know what you mean, 'he means the phonetic alphabet'. I say the first syllable to rhyme with 'bun'. That's surely fairly standard (non-US) English. It's mysterious to me that that's not one of your alternatives.

Re: I made a talking emoji using regular emojis and JavaScript

#59

Earlier quoted context omitted.

'mah-' is US English, not English :P It's 'mah' in one country. p.s. Seems every day on here I'm reminding people from the US that their country is not the world, their version of English is spoken and spelt in just one country, etc etc etc. Maybe I should give up doing that. The most classic maybe was a linguist (yes, amazing) who on her blog was gloating that her variety of US English was particularly rich, in havi…

"Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize."

..which would be, what?
Post reply on HN