journal article·2025-07-09Open access

A Self-Evaluated Bilingual Automatic Speech Recognition System for Mandarin–English Mixed Conversations

Xinhe Hai, Kaviya Aranganadin, Cheng-Cheng Yeh, Zhengmao Hua, Chen-Yun Huang, Hua-Yi Hsu, Ming-Chieh Lin

Applied Sciences· Volume 15· Issue 14

Abstract

Bilingual communication is increasingly prevalent in this globally connected world, where cultural exchanges and international interactions are unavoidable. Existing automatic speech recognition (ASR) systems are often limited to single languages. However, the growing demand for bilingual ASR in human–computer interactions, particularly in medical services, has become indispensable. This article addresses this need by creating an application programming interface (API)-based platform using VOSK, a popular open-source single-language ASR toolkit, to efficiently deploy a self-evaluated bilingual ASR system that seamlessly handles both primary and secondary languages in tasks like Mandarin–English mixed-speech recognition. The mixed error rate (MER) is used as a performance metric, and a workflow is outlined for its calculation using the edit distance algorithm. Results show a remarkable reduction in the Mandarin–English MER, dropping from ∼65% to under 13%, after implementing the self-evaluation framework and mixed-language algorithms. These findings highlight the importance of a well-designed system to manage the complexities of mixed-language speech recognition, offering a promising method for building a bilingual ASR system using existing monolingual models. The framework might be further extended to a trilingual or multilingual ASR system by preparing mixed-language datasets and computer development without involving complex training.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Speech Recognition and Synthesis · Natural Language Processing Techniques · Speech and dialogue systems

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Multidisciplinary Computational Laboratory, Department of Electrical and Biomedical Engineering, Hanyang University, Seoul 04763, Republic of Korea

Lifetree Telemed Inc., Taichung 402256, Taiwan

Department of Photonics, National Cheng Kung University, Tainan 70101, Taiwan

Department of Mechanical Engineering, National Taipei University of Technology, Taipei 10608, Taiwan

Funding

National Research Foundation, South Korea · Hanyang University · Lifetree Telemed Inc.

References (56)

Show source-provided references
1. Code-switching automatic speech recognition for nursing record documentation: System development and evaluation10.2196/37562 ↗
2. A review on different approaches for speech recognition system
3. Review of the application of intelligent speech technology in education10.1515/jccall-2022-0004 ↗
4. Automatic recognition of spoken digits10.1121/1.1906946 ↗
5. A tutorial on hidden Markov models and selected applications in speech recognition10.1109/5.18626 ↗
6. Jurafsky, D., and Martin, J.H. (2009). An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition, Prentice Hall.
7. Yeh, C.F., Huang, C.Y., Sun, L.C., and Lee, L.S. (December, January 29). An integrated framework for transcribing Mandarin-English code-mixed lectures with improved acoustic and language modeling. Proceedings of the 7th International Symposium on Chinese Spoken Language Processing (ISCSLP 2010), Tainan, Taiwan.10.1109/ISCSLP.2010.5684908 ↗
8. Guo, P., Xu, H., Xie, L., and Chng, E.S. (2018, January 2–6). Study of semi-supervised approaches to improving English-Mandarin code-switching speech recognition. Proceedings of the Interspeech 2018, Hyderabad, India.10.21437/Interspeech.2018-1974 ↗
9. Amazouz, D., Adda-Decker, M., and Lamel, L. (2017, January 20–24). Addressing French/Algerian code-switching Arabic speech. Proceedings of the Interspeech 2017, Stockholm, Sweden.
10. Guzmán, G.A., Ricard, J., Serigos, J., Bullock, B.E., and Toribio, A.J. (2017, January 20–24). Metrics for modeling code-switching across corpora. Proceedings of the Interspeech 2017, Stockholm, Sweden.10.21437/Interspeech.2017-1429 ↗
11. Alemu, A.A., Melese, M.D., and Salau, A.O. (2023). Towards audio-based identification of Ethio-Semitic languages using recurrent neural network. Sci. Rep., 13.10.1038/s41598-023-46646-3 ↗
12. Waibel, A., Soltau, H., Schultz, T., Schaaf, T., and Metze, F. (2000). Multilingual speech recognition. Verbmobil: Foundations of Speech-to-Speech Translation, Springer.10.1007/978-3-662-04230-4_3 ↗
13. Acoustic data augmentation for Mandarin-English code-switching speech recognition10.1016/j.apacoust.2019.107175 ↗
14. Automatic recognition of Cantonese-English code-mixing speech
15. Winata, G.I., Madotto, A., Wu, C.S., and Fung, P. (2018). Towards end-to-end automatic code-switching speech recognition. arXiv.
16. Recent advances in end-to-end automatic speech recognition10.1561/116.00000050 ↗
17. Shmyrev, N.V. (2025, June 04). Vosk Speech Recognition Toolkit: Offline Speech Recognition API for Android, iOS, Raspberry Pi and Servers with Python, Java, C# and Node. Available online: https://github.com/alphacep/vosk-api.
18. Cantonese-English code-switching research in Hong Kong: A Y2K review10.1111/1467-971X.00181 ↗
19. Multilingual document mining and navigation using self-organizing maps10.1016/j.ipm.2009.12.003 ↗
20. Multilingual sentence categorization and novelty mining10.1016/j.ipm.2010.02.003 ↗
21. Enhancing portability with multilingual ontology-based knowledge management10.1016/j.dss.2007.07.011 ↗
22. Cross-language information retrieval: The way ahead10.1016/j.ipm.2004.06.006 ↗
23. Cross-lingual query expansion in multilingual folksonomies: A case study on Flickr10.1016/j.knosys.2013.01.016 ↗
24. Combining mutual information and entropy for unknown word extraction from multilingual code-switching sentences
25. Acoustic model optimization for multilingual speech recognition
26. Automatic segmentation and identification of mixed-language speech using delta-BIC and LSA-based GMMs10.1109/TSA.2005.852992 ↗
27. A cross-language state sharing and mapping approach to bilingual (Mandarin–English) TTS10.1109/TASL.2009.2015708 ↗
28. Lyu, D.C., Lyu, R.Y., Zhu, C.L., and Ko, M.T. (December, January 29). Language identification in code-switching speech using word-based lexical model. Proceedings of the 7th International Symposium on Chinese Spoken Language Processing (ISCSLP 2010), Beijing, China.10.1109/ISCSLP.2010.5684483 ↗
29. Lyu, D.C., Tan, T.P., Chng, E., and Li, H. (2010, January 26–30). SEAME: A Mandarin-English code-switching speech corpus in South-East Asia. Proceedings of the Interspeech 2010, Makuhari, Chiba, Japan.10.21437/Interspeech.2010-563 ↗
30. Shen, H.P., Wu, C.H., Yang, Y.T., and Hsu, C.S. (2011, January 26–28). CECOS: A Mandarin-English code-switching speech database. Proceedings of the 2011 International Conference on Speech Database and Assessments (Oriental COCOSDA), Hsinchu, Taiwan.10.1109/ICSDA.2011.6085992 ↗
31. Wang, D., Tang, Z., Tang, D., and Chen, Q. (2016, January 26–28). OC16-CE80: A Mandarin-English mixlingual database and a speech recognition baseline. Proceedings of the 2016 Conference of the Oriental Chapter of International Committee for Coordination and Standardization of Speech Databases and Assessment Techniques (O-COCOSDA), Bali, Indonesia.10.1109/ICSDA.2016.7918989 ↗
32. Vu, N.T., Lyu, D.C., Weiner, J., Telaar, D., Schlippe, T., Blaicher, F., Chng, E.S., Schultz, T., and Li, H. (2012, January 25–30). A first speech recognition system for Mandarin-English code-switch conversational speech. Proceedings of the 2012 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Kyoto, Japan.10.1109/ICASSP.2012.6289015 ↗
33. Vu, N.T. (2014). Automatic Speech Recognition for Low-Resource Languages and Accents Using Multilingual and Crosslingual Information. [Ph.D. Thesis, Karlsruhe Institute of Technology (KIT)].
34. Bhuvanagiri, K., and Kopparapu, S.K. (2010, January 24–25). An approach to mixed language automatic speech recognition. Proceedings of the Oriental COCOSDA 2010, Kathmandu, Nepal.
35. Mixed language speech recognition without explicit identification of language10.5923/j.ajsp.20120205.02 ↗
36. Zellou, G., and Lahrouchi, M. (2024). Linguistic disparities in cross-language automatic speech recognition transfer from Arabic to Tashlhiyt. Sci. Rep., 14.10.1038/s41598-023-50516-3 ↗
37. Van Der Westhuizen, E., and Niesler, T. (2017, January 20–24). Synthesising isiZulu-English code-switch bigrams using word embeddings. Proceedings of the Interspeech 2017, Stockholm, Sweden.10.21437/Interspeech.2017-1437 ↗
38. Adel, H., Vu, N.T., and Schultz, T. (2013, January 4–9). Combination of recurrent neural networks and factored language models for code-switching language modeling. Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Sofia, Bulgaria.
39. Weng, C., Cui, J., Wang, G., Wang, J., Yu, C., Su, D., and Yu, D. (2018, January 2–6). Improving attention based sequence-to-sequence models for end-to-end English conversational speech recognition. Proceedings of the Interspeech 2018, Hyderabad, India.10.21437/Interspeech.2018-1030 ↗
40. Shan, C., Zhang, J., Wang, Y., and Xie, L. (2018, January 2–6). Attention-based end-to-end models for small-footprint keyword spotting. Proceedings of the Interspeech 2018, Hyderabad, India.10.21437/Interspeech.2018-1777 ↗
41. Akinpelu, S., and Viriri, S. (2023). Speech emotion classification using attention based network and regularized feature selection. Sci. Rep., 13.10.1038/s41598-023-38868-2 ↗
42. Rahman Chowdhury, F.R., Wang, Q., Moreno, I.L., and Wan, L. (2018, January 15–20). Attention-based models for text-dependent speaker verification. Proceedings of the 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Calgary, AB, Canada.
43. Fang, X., Gao, T., Zou, L., and Ling, Z. (2020). Bidirectional attention for text-dependent speaker verification. Sensors, 20.10.3390/s20236784 ↗
44. Luo, N., Jiang, D., Zhao, S., Gong, C., Zou, W., and Li, X. (2018). Towards end-to-end code-switching speech recognition. arXiv.
45. Huang, Z., Wang, P., Wang, J., Miao, H., Xu, J., and Zhang, P. (2021). Improving transformer-based end-to-end code-switching speech recognition using language identification. Appl. Sci., 11.10.3390/app11199106 ↗
46. A two-fold cross-validation training framework combined with meta-learning for code-switching speech recognition10.1587/transinf.2022EDL8036 ↗
47. MLSS: Mandarin English code-switching speech recognition via mutual learning-based semi-supervised method10.1109/LSP.2025.3540953 ↗
48. Multi-task learning in deep neural networks for Mandarin-English code-mixing speech recognition10.1587/transinf.2016SLL0004 ↗
49. Ali, A., and Renals, S. (2018, January 15–20). Word error rate estimation for speech recognition: e-WER. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Melbourne, Australia.10.18653/v1/P18-2004 ↗
50. Testing the correlation of word error rate and perplexity10.1016/S0167-6393(01)00041-3 ↗
51. Binary codes capable of correcting deletions, insertions, and reversals
52. Kessler, B. (1995, January 27–31). Computational dialectology in Irish Gaelic. Proceedings of the Seventh Conference on European Chapter of the Association for Computational Linguistics, Dublin, Ireland.10.3115/976973.976983 ↗
53. Measuring foreign accent strength in English: Validating Levenshtein distance as a measure10.1163/22105832-00402001 ↗
54. Mustafa, M.B., Yusoof, M.A., Khalaf, H.K., Rahman Mahmoud Abushariah, A.A., Kiah, M.L.M., Ting, H.N., and Muthaiyah, S. (2022). Code-switching in automatic speech recognition: The issues and future directions. Appl. Sci., 12.10.3390/app12199541 ↗
55. Povey, D., Ghoshal, A., Boulianne, G., Burget, L., Glembek, O., Goel, N., Hannemann, M., Motlicek, P., Qian, Y., and Schwarz, P. (2011, January 11–15). The Kaldi speech recognition toolkit. Proceedings of the IEEE 2011 Workshop on Automatic Speech Recognition and Understanding (ASRU), Waikoloa, HI, USA.
56. Ardila, R., Branson, M., Davis, K., Henretty, M., Kohler, M., Meyer, J., Morais, R., Saunders, L., Tyers, F.M., and Weber, G. (2020, January 11–16). Common Voice: A massively-multilingual speech corpus. Proceedings of the 12th Language Resources and Evaluation Conference (LREC), Marseille, France.