Lurker News
Built this because tones are killing my spoken Mandarin and I can't reliably hear my own mistakes.

It's a 9M Conformer-CTC model trained on ~300h (AISHELL + Primewords), quantized to INT8 (11 MB), runs 100% in-browser via ONNX Runtime Web.
Grades per-syllable pronunciation + tones with Viterbi forced alignment.
Try it here: https://simedw.com/projects/ear/

Comments (153) 66 threads

dapangzi4 replies#
Longtime lurker, made an account specifically to give feedback here as an intermediate speaker. :)

This is a great initiative and I hope to see more come out of this; I am not criticizing, but just want to provide my user experience here so you have data points.
In short, my experience lines up with your native speakers.
I found that it loses track of the phonemes when speaking quickly, and tones don't seem to line up when speaking at normal conversational speed.
For example, if I say 他是我的朋友 at normal conversational speed, it will assign `de` to 我, sometimes it interprets that I didn't have the retroflexive in `shi` and renders it `si`. Listened back to make sure I said everything, the phonemes are there in the recording, but the UI displays the wrong phonemes and tones.
By contrast, if I speak slowly and really push each tone, the phonemes and tones all register correctly.
Also, is this taking into account tone transformation? Example, third tones (bottom out tone) tend to smoosh into a second tone (rising) when multiple third tones are spoken in a row. Sometimes the first tone influences the next tone slightly, etc.
Again, great initiative, but I think it needs a way to deal with speech that is conversationally spoken and maybe even slurred a bit due to the nature of conversational level speech.

tifan1 reply#
I had the same issue! Perhaps being another dapangzi is the problem here lol
et-al3 replies#
I'm not familiar with this slang: what's a big plate?
dirteater_3 replies#
the commenter's username (i'm guessing they mean 大胖子, feel free to google translate)

Continue this thread — 3 replies

allan_s#
It's a slang for somebody fat. 子 does not carry a specific meaning it is more a character with grammatical function to nominative
dapangzi#
胖 (pàng) means fat, vs 盘 (pán), which means plate.

Quite alright! We have to make mistakes to learn!

sqs2 replies#
I don't think it takes care of tone transformation (eg 他是 ni3shi4 -> ni2shi4). Or if it does, my tones are just off. But it's a really cool idea!
jhanschoo1 reply#
The tone sandhi example you just gave looks incorrect to me
jimz#
Well, OP wrote "he is" but then wrote "you are" in pinyin for one, and that's a bit hard to reconcile.
carlmr#
他是 is tāshì which doesn't transform I think. Did you mean to write 你是 nǐshì? I think that transforms differently though. With the half 3rd tone only dropping.

The classical example is 4/4 不是. Which goes bùshì -> búshì.
Or 3/3 that becomes 2/3. E.g. 你好 nǐhǎo becoming níhǎo.
The 1/4 -> 2/4 transformation I think is specific to one. 一个 yīgè becomes yígè.

mercanlIl#
The tool definitely needs to address tone transformations, it’s a big part of how the language is spoken. Otherwise it’s mostly useful for a first year student speaking in isolation.

Hoping to see improvements in this area

simedw2 replies#
Thank for the great feedback!

I have just added sandhi support, please let me know if it's working better.

dapangzi#
ACKing your comment.

Will check once the TV is off in the house. :)

dapangzi#
Still having some issues that match my previous comment, I'll try to follow your blog and give more feedback as you work on it.

Will comment that the shorter phrases (2-4 characters long) were generally accurate at normal speed, but the longer sentences have issues.
Maybe focusing on the accuracy of the smaller phrases and then scaling that might be a good way to go, since those smaller phrases are returning better accuracy.
Again, really think this is a great initiative, want to see how it grows. :)

yunusabd1 reply#
Super nice, thanks for sharing!

There's one thing that gave me pause: In the phrase 我想学中文 it identified "wén" as "guó". While my pronunciation isn't perfect, there's no way that what I said is closer to "guó" than to "wén".
This indicates to me that the model learned word structures instead of tones here. "Zhōng guó" probably appears in the training data a lot, so the model has a bias towards recognizing that.
- Edit -
From the blog post:
> If my tone is wrong, I don’t want the model to guess what I meant. I want it to tell me what I actually said.
Your architecture also doesn't tell you what you actually said. It just maps what you said to the likeliest of the 1254 syllables that you allow. For example, it couldn't tell you that you said "wi" or "wr" instead of "wo", because those syllables don't exist in your setup.

vjerancrnjak1 reply#
I tried just repeating guó for as many times as symbols and repetition was not recognized.

Although I like the active aspect of the approach. Language apps where sound is the main form of learning should have a great advantage, as any written text just confuses as every country has its own spin on orthography. Even pinyin, despite making sense, for a beginner, has so many conflicting symbols.

yunusabd1 reply#
> I tried just repeating guó for as many times as symbols and repetition was not recognized.

Can you elaborate? I'm not sure I understand.

qingcharles#
I think he's saying transliteration and romanization is horribly flawed in some instances.
namelosw6 replies#
Impressive work! The idea and the UI is very intuitive.

Though, as a guy who speaks perfect mandarin from Beijing, I’m struggle even to pass the easy ones… So it can definitely used some improvements. The example 你好吃饭了吗 returns hào → hǎo, fān → fàn, le → liǎo. The first two are the model listen my tone mistakenly, and the last one should be le instead of liǎo in this context.
Also I see in the comment section people are worry about tones. I can guarantee tones are not particularly useful and you can communicate with native speakers with all the tones messed up and that’s perfectly fine. Because as soon as you leave Beijing, you’ll find all the tones are shuffled because of every region has their own dialect and accents, which doesn’t stop people from communicate at all. So don’t let tone stuff slow your learning process down.

samiv1 reply#
As a person who lived in Taiwan and reached C1 in Chinese, I can also say that the tones are indeed less important than one might thing once one can say more and communicate more context. In the beginning when you're very limited in your expressive capacity and only can say simple sentences there's less context and getting the tones wrong does produce confusion.

"Because as soon as you leave Beijing, you’ll find all the tones are shuffled because of every region has their own dialect and accents, which doesn’t stop people from communicate at all. "
Isn't this in fact one of the reasons why China relies heavily on the written language because the different regions lose vocal communication ability as the changes in tones and pronounciations render the language understandable to people from other regions?

zelphirkalt#
The point about being a beginner and having limited capacity to express oneself is an important point. When you can say more, you will also have learned more about the language's tendency to use words of 2 syllables, rather than 1 syllable words. Using 2 syllables instead of 1 already removes a lot of ambiguity, and people will understand you better.
mijoharas#
I feel like there is a commonly mentioned idea that "speaking a foreign language is easier after having a drink or two".

I've found that especially true with Mandarin because (I think) a beginner speaker is more likely to speak a little more quickly which allows the listener to essentially ignore the occasional incorrect or slightly mispronounced tone and understand the what theyî're trying to say.
(This is anecdotal, but with n>1. Discussed and observed with other Mandarin language learners)

tianqi3 replies#
Please allow me to share some of my views. I'm a native Mandarin speaker.

> I can guarantee that tones are not particularly useful and that you can communicate with native speakers with all the tones messed up, and that's perfectly fine.
Not at all. Tones are extremely important. If you have all the tones messed up, you can hardly communicate in Mandarin. It's true, as you said, that different regions of China have different dialects, and you'll find that people can communicate normally because: 1) The tonal differences in nearby regions are not too significant, and people can still try to understand based on context. And 2) In many cases, people switch to regular Mandarin when their dialects cannot communicate with each other. This is why Mandarin exists. It is an officially regulated dialect that all Chinese people learn, to solve the dialect problem among different regions. Chinese people may speak their own dialects at hometown, but when two Chinese people meet and find that their dialects cannot communicate, they immediately switch to Mandarin. Therefore, the tones in Mandarin are very important. To a considerable extent, Mandarin exists because of tones. You cannot communicate in it with messed up tones.

namelosw#
Well, as a northern guy, I do find myself able to understand Mandarin even from Yunnan easily without prior learning. The harder ones for me, like the Hefei dialect, are because the pronunciation is very different, not the tone. Nanjing dialect, on the otherhand, is also from the same Jianghuai Mandarin group as Hefei, which is perfect intelligentable for me.

Even for non-Mandarin/Guanhua, such as the Shanxi dialect, I can understand them because the pronunciation is much closer to mine, just the tones are completely novel.

calf#
Yes but Regular Mandarin has different tones, Beijing Mandarin is not Hong Kong-style Mandarin is not Taiwanese Mandarin and so when a foreigner chooses "Reference Mandarin", they are choosing what, exactly?

Point being, this idea of a Universal Reference is exactly the kind of linguistic erasure that is wrongheaded to begin with. Nor does this completely prevent comprehension, these debates underestimate how much human communication is contextual, you read what I wrote above and most of it was your mind already filling in (gasp, like an LLM) the next words enabling you to read relatively quickly.

thaumasiotes#
> If you have all the tones messed up, you can hardly communicate in Mandarin.

> To a considerable extent, Mandarin exists because of tones. You cannot communicate in it with messed up tones.
These statements are false. If they were true, it would be impossible to understand written tone-free pinyin; in reality, it's not just possible but easy.

zelphirkalt#
About the tones not being as useful ... I think there are cases, in which they matter. Take for example 熊猫 and 胸毛: "有 xiongmao 吗?" "Are there Pandas? " or "Do you have chest hair?". Another one: 时间 and 事件. Sometimes it gets comical, but natives can and some will be confused, when your tones are off by too much, and the conversation just started, so that the context is not as narrowed down. Context is key in the language. You can notice that, when you are trying to join a conversation between natives. Until you understand a phrase or most of a phrase, that gives you a hint for the topic they are talking about, you will usually have a hard time understanding anything.

I just tried the tool and it couldn't properly recognize a very clearly pronounced "吃" and instead heard some shi2. I think it needs more training data or something. Or one needs a good mic.

samus1 reply#
> Also I see in the comment section people are worry about tones. I can guarantee tones are not particularly useful and you can communicate with native speakers with all the tones messed up and that’s perfectly fine.

That might be true between native speakers of similar enough dialects who otherwise speak "properly" with each other: proper grammar, idiomatic expressions, predictable accents (also regarding tones, which are not random, just different patterns from the standard). Language learners make errors in all these categories and there providing more motivation to neglect the tones is harmful. If tones were completely irrelevant regarding understandably then they would have disappeared long ago.

namelosw#
> If tones were completely irrelevant regarding understandably then they would have disappeared long ago.

Probably because it's a legacy and disappearing slowly? Modern Mandarin only has four tones left and has already lost tone patterns.
Do you know there's a "robot tone" in Chinese? It's simply swap every character to the flat or the first tone. Though it's under the stereotypical false assumption that robots have troubles with tones, kids in the late last century often communicated in that tone for fun without issues.
At the end of the day, vocal Chinese is always ambiguous with or without tones and in practice heavily relies on context. It requires written language to truly fix that.

simedw#
Hi, thanks for the feedback. The 了 issue was a bug on the JavaScript side; that should be fixed (training did thankfully handle it correctly).

The other two are probably things that could be fixed with a bigger and more varied dataset.

ecshafer7 replies#
Anyone that is a native European language speaker that hasn't tried to learn Chinese or some other tonal language, its really hard to understand how hard it is. The tones can really be very subtle, and your ear is not fine tuned to them. So you think you are saying it right, but native speakers have no idea what you are saying.
cyberax2 replies#
I'm a native Russian speaker, and I decided to learn Mandarin, because it's linguistically almost the opposite of Russian.

I had no problems with tone pronunciation, but tone recognition was indeed much trickier. I still often get lost when listening to fast speech although I can follow formal speech (news) usually without problems.

barrell#
I recently started learning a tonal language, and so far have not struggled too much wrt tones when everything is slow. There was an original strangeness and refusal for my vocal cords to want to work that way, but probably only for the first month or so.

At least, this is the case for slow text. Once the text is sped up it’s amazing how my brain just stops processing that information. Both listening and speaking.
I’m sure this will come with practice and time but for now I find it fascinating

thenthenthen1 reply#
Euro speaker here, no problem with recognising tones but speaking them…:/
cyberax#
Are you studying a language with contour tones or with high/mid tone distinction? I tried to study a bit of Thai, and the high/mid tone distinction was a complete show-stopper for me.
dionian#
its critical because without proper tonal enunciation the words can be ambiguous.
laurieg1 reply#
For someone who hasn't grown up speaking an language with tones or pitches, the process of learning them can be maddening. I applaud anyone who makes tools like this to try to make the process easier.

My experience in learning Japanese pitch accent was eye-opening. At the start, I couldn't hear any difference. On quizzes I essentially scored the same as random guessing.
The first thing that helped me a lot was noticing how there were things in my native language (English) that used pitch information. For example, "uh-oh" has a high-low pitch. If you say it wrong it sounds very strange. "Uh-huh" to show understanding goes low-high. Again, if you reverse it it sounds unusual.
The next part was just doing lots of practice with minimal pairs. Each time I would listen and try my best to work out where the pitch changed. This took quite a lot of time. I feel like massed practice (many hours in a day) helped me more than trying to do 10 minutes regularly. Try to hear them correctly, but don't try too hard. I didn't have any luck with trying harder to 'understand' what was going on. I liken it to trying to learn to see a new color. There isn't much conscious thought.
The final piece of the puzzle was learning phrases, not individual words, that had pitch changes. For example: "yudetamago" could be boiled egg or boiled grandchildren. Somehow my brain just had a much easier time latching on to multi-word phrases instead of single words. Listening to kaki (persimmon) vs kaki (oyster) again and again seemed much harder.
Of course, your mileage may vary with these techniques. I already spoke decent Japanese when I started doing this.

ronyeh1 reply#
> For example, "uh-oh" has a high-low pitch. If you say it wrong it sounds very strange. "Uh-huh" to show understanding goes low-high. Again, if you reverse it it sounds unusual.

Wow… Thanks for making it clear that English also has tones! I hadn’t thought of it this way before. “Uh-huh” sounds similar to Mandarin tones 3 & 2. “Uh-oh” is similar to Cantonese tones 1 & 3.
I’m wondering if we can find good examples to teach the Mandarin tones. I think two or three syllable words are best because it illustrates the contour of the tones.

thaumasiotes1 reply#
Pitch levels are important enough in English that native speakers spontaneously develop ways to write them down, even though the standard written language has no way to indicate them.

However, they operate at the level of the sentence rather than the individual word, which sets up a conflict if an English speaker wants to learn Chinese.
The most common uses of pitch in English are to annotate the grammatical structure of a sentence, making it clear which words belong together in larger phrases, and to mark yes/no questions.
English does have one clear example of lexical tone, the "I don't know" word, which is pronounced very similarly to the Mandarin pinyin éēě. (If pronounced with the mouth open. With the mouth closed, it would be more like 嗯嗯嗯 in the same 2-1-3 tone sequence.)

Continue this thread — 1 reply

danparsonson1 reply#
Wholeheartedly (or maybe downheartedly?) agree with this - sometimes I try to say the simplest things and people just stare at me like I'm speaking Martian. Which I suppose I might as well be! One of my big problems is implicit use of tones for things like expressing uncertainty; that's a very difficult habit to get out of.

Continue this thread — 1 reply

Continue this thread — 3 more replies

Load more comments