Patent information
IP India · live recordAbstract
The present disclosure relates to a system (100) and a method for generating natural-pronunciation phoneme sequences from code-mixed text. The system (100) includes a text input module (102) to receive a code-mixed text input including words from multiple natural languages, a language detection module (104) to determine, for each word or sub-word, an origin language using neighboring token information, and a normalization module (106) to apply language-specific text normalization based on the determined origin language. The system (100) further includes one or more language-specific phonemizer modules (108) and a phoneme sequence merger module (110) to merge per-word or sub-word phoneme sequences into a unified phoneme sequence in a shared phoneme space. A text encoder (112) may consume the unified phoneme sequence to generate encoded representations for text-to-speech synthesis or voice cloning.
Applicants
1Inventors
2Claims
10Specification
Show full textCollapse
Description:TECHNICAL FIELD
[0001] The present disclosure generally relates to the field of speech and language processing. In particular, the present disclosure relates to a system and a method for generating natural-pronunciation phoneme sequences from code-mixed text.
BACKGROUND
[0002] In modern speech and language processing systems, text-to-speech synthesis and voice cloning are increasingly expected to operate in multilingual environments. In many real-world use cases, such as conversational agents, voice assistants, and messaging applications, users naturally produce code-mixed text in which words and sub-words from multiple natural languages are interleaved within a single sentence. This code-mixed behavior is especially common in regions where speakers routinely switch between an Indic language and English, or between multiple Indic languages, often using a mixture of native scripts and transliterated forms.
[0003] Conventional text front-ends for text-to-speech engines are typically designed for monolingual input or rely on explicit language tags or markup to indicate language boundaries in the text. When such tags are missing, incomplete, or unreliable, the entire input is often treated as belonging to a single default language. As a result, language-specific text normalization and grapheme-to-phoneme processing are applied without respecting true language switches present in the code-mixed text. This behavior is particularly problematic when upstream content is produced by large language models or other generative systems that do not consistently enforce language-tagging schemes or script-conversion rules.
[0004] Existing approaches also struggle with local entities such as person names, city names, and place names that originate from non-default languages but are written in various scripts or transliterated forms. When such proper nouns are processed as if they belonged to a default language, their pronunciation tends to follow the phonotactics and accent of that default language, leading to unnatural or unintelligible renderings for native speakers of the origin language. In addition, many pipelines implicitly tie pronunciation to the script in which a word is written, rather than to the underlying origin language, which further exacerbates errors in code-mixed scenarios.
[0005] Furthermore, many text front-ends rely on language-specific character vocabularies and independently designed phoneme inventories, making it difficult to represent cross-lingual code-mixed content in a unified phoneme space. Language-agnostic text encoders must then either cope with heterogeneous symbol sets or maintain multiple separate encoders, which can hinder model convergence, reduce data efficiency, and complicate deployment. Inconsistent treatment of digits, abbreviations, and short forms across languages during text normalization can introduce additional variability and degrade the quality of downstream speech synthesis and voice cloning.
[0006] Therefore, there is a need for an improved approach that overcomes at least the above-mentioned drawbacks.
OBJECTS OF THE PRESENT DISCLOSURE
[0007] A general object of the present disclosure is to provide a system and a method for generating natural-pronunciation phoneme sequences from code-mixed text using context-aware language detection, language-specific text normalization, and language-specific phonemization in a unified phoneme space.
[0008] Another object of the present disclosure is to enable reliable processing of cross-lingual code-mixed text without requiring explicit language tags or markup from upstream text-generation systems.
[0009] Another object of the present disclosure is to determine origin languages for words and sub-words independently of the scripts used, and to preserve native-sounding pronunciation for proper nouns and other local entities.
[0010] Another object of the present disclosure is to provide a unified phoneme inventory and a cross-lingual unified phoneme sequence that improve the efficiency and quality of multilingual text-to-speech synthesis and voice cloning.
[0011] Another object of the present disclosure is to supply a phoneme-based representation that may be consumed by downstream text-understanding models, thereby increasing robustness to spelling variation, transliteration, and mixed-language usage.
SUMMARY
[0012] Aspects of the present disclosure pertain to the field of speech and language processing. In particular, the present disclosure relates to a system and a method for generating natural-pronunciation phoneme sequences from code-mixed text.
[0013] An aspect of the present disclosure pertains to a system for generating natural-pronunciation phoneme sequences from code-mixed text. The system includes a text input module configured to receive a code-mixed text input comprising words from two or more different natural languages, and a language detection module configured to determine, for each word or sub-word in the code-mixed text input, an origin language based on contextual and neighboring token information. The system also includes a normalization module configured to perform language-specific text normalization for each word or sub-word based on the origin language determined for the respective word or sub-word. The system also includes one or more language-specific phonemizer modules, each corresponding to a different natural language, wherein the system routes each normalized word or sub-word to a language-specific phonemizer module matching the origin language of the respective word or sub-word to generate a respective phoneme sequence for that word or sub-word. The system also includes a phoneme sequence merger module configured to merge the per-word or sub-word phoneme sequences into a unified phoneme sequence in a shared phoneme space.
[0014] Another aspect of the present disclosure pertains to a method for generating natural-pronunciation phoneme sequences from code-mixed text. The method includes receiving, by a text input module, a code-mixed text input comprising words from two or more different natural languages, and determining, by a language detection module, for each word or sub-word in the code-mixed text input, an origin language based on contextual and neighboring token information. The method further includes performing, by a normalization module, language-specific text normalization for each word or sub-word based on the origin language determined for the respective word or sub-word, and routing, by a system including one or more language-specific phonemizer modules each corresponding to a different natural language, each normalized word or sub-word to a language-specific phonemizer module matching the origin language of the respective word or sub-word to generate a respective phoneme sequence for that word or sub-word. The method also includes merging, by a phoneme sequence merger module, the per-word or sub-word phoneme sequences into a unified phoneme sequence in a shared phoneme space.
BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings illustrate exemplary embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0016] FIG. 1 illustrates an example block diagram of a system (100) for generating natural-pronunciation phoneme sequences from code-mixed text, in accordance with an embodiment of the present disclosure.
[0017] FIG. 2 illustrates an example block diagram of a computing system (200), in accordance with an embodiment of the present disclosure.
[0018] FIG. 3 illustrates an example block diagram of a server system (300), in accordance with an embodiment of the present disclosure.
[0019] FIG. 4 illustrates an example flow diagram of a method (400) for processing cross-lingual code-mixed text, in accordance with an embodiment of the present disclosure.
DETAILED DESCRIPTION
[0020] In the following description, for the purposes of explanation, various specific details are set forth in order to provide a thorough understanding of embodiments of the present disclosure. It will be apparent, however, that embodiments of the present disclosure may be practiced without these specific details. Several features described hereafter can each be used independently of one another or with any combination of other features. An individual feature may not address all of the problems discussed above or might address only some of the problems discussed above. Some of the problems discussed above might not be fully addressed by any of the features described herein.
[0021] The ensuing description provides exemplary embodiments only and is not intended to limit the scope, applicability, or configuration of the disclosure. Rather, the ensuing description of the exemplary embodiments will provide those skilled in the art with an enabling description for implementing an exemplary embodiment. It should be understood that various changes may be made in the function and arrangement of elements without departing from the spirit and scope of the disclosure as set forth.
[0022] The following is a detailed description of embodiments of the disclosure depicted in the accompanying drawings. The embodiments are in such detail as to clearly communicate the disclosure. If the specification states a component or feature “may”, “can”, “could”, or “might” be included or have a characteristic, that particular component or feature is not required to be included or have the characteristic.
[0023] As used in the description herein that follow, the meaning of “a,” “an,” and “the” includes plural reference unless the context clearly dictates otherwise. Also, as used in the description herein, the meaning of “in” includes “in” and “on” unless the context clearly dictates otherwise.
[0024] The technical problem addressed by the present disclosure is that existing speech and language processing pipelines are not well suited to handle cross-lingual code-mixed text that lacks reliable language tags or markup. Conventional text front-ends typically assume that an entire utterance belongs to a single default language, or they depend on external tagging discipline to indicate language boundaries. As a result, language-specific text normalization and grapheme-to-phoneme processing are applied without respecting true language switches and without accounting for transliterated tokens. This leads to systematic errors in pronunciation, especially for proper nouns and other local entities, and forces downstream text-to-speech and voice cloning systems to learn over fragmented, language-specific symbol sets rather than a unified phoneme representation.
[0025] The technical solution proposed in the present disclosure is a context-aware, language-agnostic text processing and phonemization framework that operates directly on raw code-mixed text. The system receives a code-mixed text input and applies language detection at the level of words and sub-words using contextual and neighboring token information, while decoupling origin language determination from the script used to write each token. The system then performs language-specific text normalization per token based on the determined origin language, routes each normalized token to a corresponding language-specific phonemizer module, and generates phoneme sequences in a unified phoneme inventory shared across all supported languages. A phoneme sequence merger module combines these per-token phoneme sequences into a single unified phoneme sequence in a shared phoneme space that can be consumed by a text encoder for text-to-speech synthesis, voice cloning, or other downstream models.
[0026] The technical effect of the present disclosure is improved accuracy, naturalness, and efficiency in processing and synthesizing speech from code-mixed text. By determining origin language independently of script and applying language-appropriate normalization and phonemization rules, the system preserves native-sounding pronunciation for proper nouns and local entities, reduces mispronunciations caused by default-language bias, and yields more consistent segmental and prosodic patterns in synthesized speech. The unified phoneme inventory and cross-lingual unified phoneme sequence allow a single text encoder to learn shared representations across multiple languages, which may accelerate convergence, reduce the need for separate language-specific encoders, and improve robustness to spelling variation, transliteration, and mixed-language usage in both speech synthesis and text-understanding applications.
[0027] Various embodiments with respect to the present disclosure will be explained in detail with reference to FIGs. 1-4.
[0028] FIG. 1 illustrates an example block diagram of a system (100) for generating natural-pronunciation phoneme sequences from code-mixed text, in accordance with one or more embodiments of the present disclosure. The system (100) may include a text input module (102), a language detection module (104), a normalization module (106), one or more language-specific phonemizer modules (108), a phoneme sequence merger module (110), and a text encoder (112).
[0029] The text input module (102) may be configured to receive a code-mixed text input that includes words from two or more different natural languages. In some embodiments, the text input module (102) may receive the code-mixed text input from an upstream text generation engine, a user interface, or another application that produces sentences in which multiple languages are interleaved within a single utterance. The text input module (102) may forward the code-mixed text input to the language detection module (104) for further processing.
[0030] The language detection module (104) may be configured to determine, for each word or sub-word in the code-mixed text input, an origin language based on contextual and neighboring token information. For example, the language detection module (104) may analyze a local neighborhood of tokens including at least one preceding token and at least one following token around a given word or sub-word to infer whether that word or sub-word belongs to a first natural language, a second natural language, or another supported natural language. The language detection module (104) may generate language labels or equivalent indicators for the respective words or sub-words and provide the labeled sequence to the normalization module (106).
[0031] The normalization module (106) may be configured to perform language-specific text normalization for each word or sub-word based on the origin language determined for the respective word or sub-word by the language detection module (104). The normalization module (106) may apply a set of language-specific normalization rules that may include, for example, expansion of numerals into spoken number words, expansion of abbreviations into full forms, and conversion of short forms into complete lexical items in the determined origin language. The normalization module (106) may generate a normalized representation of the code-mixed text in which each word or sub-word is expressed in a form suitable for phonemization in the corresponding origin language.
[0032] The one or more language-specific phonemizer modules (108) may each correspond to a different natural language supported by the system (100). The system (100) may route each normalized word or sub-word from the normalization module (106) to a language-specific phonemizer module (108) matching the origin language of the respective word or sub-word. Each language-specific phonemizer module (108) may be configured to generate a respective phoneme sequence for the word or sub-word according to phonotactic and grapheme-to-phoneme (G2P) rules of the corresponding natural language. The language-specific phonemizer modules (108) may output per-token phoneme sequences to the phoneme sequence merger module (110).
[0033] The phoneme sequence merger module (110) may be configured to merge the per-word or sub-word phoneme sequences received from the language-specific phonemizer modules (108) into a unified phoneme sequence in a shared phoneme space. The phoneme sequence merger module (110) may maintain a unified phoneme inventory that is common across the plurality of natural languages handled by the system (100), thereby enabling a single consolidated phoneme representation for the code-mixed text input. The unified phoneme sequence generated by the phoneme sequence merger module (110) may preserve language-specific pronunciation characteristics for each word or sub-word while presenting the entire utterance in a single phoneme domain.
[0034] The text encoder (112) may be configured to receive the unified phoneme sequence from the phoneme sequence merger module (110) and generate an encoded representation suitable for use in a downstream text-to-speech synthesis engine or a voice-cloning engine. In some embodiments, the text encoder (112) may include a neural network-based model that may learn cross-lingual representations over the unified phoneme sequence to produce embeddings or feature vectors that capture pronunciation, prosody, and contextual information across the mixed languages. The encoded representation output by the text encoder (112) may be used by an acoustic model or a vocoder, not shown in FIG. 1, to synthesize natural-accent speech that reflects the origin language of each word or sub-word in the code-mixed text input.
[0035] In one or more embodiments, the language detection module (104) and the language-specific phonemizer modules (108) may include any suitable algorithmic implementation capable of performing the respective functions described herein, such as rule-based logic, probabilistic or statistical sequence models, or neural network models including, for example, recurrent neural networks or transformer-based architectures trained on multilingual corpora.
[0036] In one embodiment, the language detection module (104) may be configured to determine an origin language of each word or sub-word in the code-mixed text input independently of a script used to represent that word or sub-word, for example by using contextual and neighboring token information to infer whether a token written in a Latin script actually belongs to an Indic language or another supported natural language. The language detection module (104) may accordingly generate language labels that reflect the inferred origin language rather than the surface script, and may cause the system (100) to route each such word or sub-word to a language-specific phonemizer module (108) corresponding to the determined origin language even when the word or sub-word is written in a different script. As a result, a Hindi-origin word written using Latin characters, or another transliterated token, may still be processed by a language-specific phonemizer module (108) for Hindi, thereby preserving native pronunciation characteristics in the unified phoneme sequence.
[0037] In one embodiment, the language detection module (104) may be configured, for at least some words in the code-mixed text input, to perform sub-word level origin language determination when a given word is composed of multiple sub-word tokens. In such embodiments, the language detection module (104) may segment the word into respective sub-words and may infer an origin language for each sub-word independently, for example when a compound word includes portions originating from different natural languages. The language detection module (104) may provide the determined origin language for each sub-word to the normalization module (106) and to the one or more language-specific phonemizer modules (108) so that subsequent normalization and phonemization may respect language boundaries within the compound word.
[0038] In one embodiment, the normalization module (106) may be configured to apply language-specific normalization rules to expand numerals, abbreviations, or short forms present in the code-mixed text input into full words in an origin language determined for respective words or sub-words. For example, the normalization module (106) may convert numeric tokens into corresponding spoken number words, expand domain-specific abbreviations into complete phrases, and rewrite colloquial short forms into standard lexical forms according to normalization rules associated with the origin language determined by the language detection module (104). The normalization module (106) may thereby generate normalized words or sub-words that are better suited for processing by the one or more language-specific phonemizer modules (108).
[0039] In one embodiment, each language-specific phonemizer module (108) may be configured to output phoneme sequences in a unified phoneme inventory that is common across all natural languages handled by the system (100), such that phonemes corresponding to different languages are represented using a shared set of phoneme symbols. In such an embodiment, the phoneme sequence merger module (110) may receive the per-word or sub-word phoneme sequences from the language-specific phonemizer modules (108) and may generate the unified phoneme sequence in a shared phoneme space defined by the unified phoneme inventory, thereby allowing downstream processing to treat the mixed-language utterance as a single continuous phoneme stream while preserving language-specific pronunciation characteristics.
[0040] In one embodiment, the system (100) may further include a text encoder (112) configured to receive the unified phoneme sequence from the phoneme sequence merger module (110) and to generate an encoded representation for use in text-to-speech (TTS) synthesis or voice cloning. The text encoder (112) may include a machine-learned model that may map the unified phoneme sequence into one or more latent feature representations capturing pronunciation, prosody, and contextual information associated with the code-mixed text input, and such encoded representations may be consumed by a downstream acoustic model or vocoder to produce natural-accent speech output that reflects the origin language of respective words or sub-words.
[0041] In one embodiment, the language detection module (104) may be configured to leverage neighboring word context, including at least one preceding token and at least one following token around a target word or sub-word, to resolve an origin language for ambiguous words or sub-words whose origin language may be ambiguous when considered in isolation. The language detection module (104) may analyze patterns of surrounding tokens, such as typical collocations or language-specific function words, to infer whether the ambiguous token more likely belongs to a first natural language, a second natural language, or another supported natural language, and may thereby reduce misclassification of tokens that share similar surface forms across languages.
[0042] In one embodiment, the code-mixed text input received by the text input module (102) may include proper nouns comprising one or more of person names, city names, or place names, and the system (100) may be configured to determine an origin language for such proper nouns using the language detection module (104). The language detection module (104) may provide the determined origin language for each proper noun to a corresponding language-specific phonemizer module (108), and the language-specific phonemizer module (108) may generate phoneme sequences that reflect pronunciation in the determined origin language, thereby preserving native-sounding pronunciation for local entities within the unified phoneme sequence produced by the phoneme sequence merger module (110).
[0043] In one embodiment, the one or more language-specific phonemizer modules (108) may include at least a first language-specific phonemizer module (108) corresponding to an Indic language and a second language-specific phonemizer module (108) corresponding to English. The system (100) may route normalized words or sub-words identified as belonging to the Indic language to the first language-specific phonemizer module (108) and may route normalized words or sub-words identified as belonging to English to the second language-specific phonemizer module (108), thereby enabling the system (100) to handle common code-mixed scenarios in which Indic language content and English content are interleaved within the same utterance.
[0044] Referring to FIG. 2, an example block diagram of a computing system (200) is illustrated, in accordance with one or more embodiments of the present disclosure. The computing system (200) may include one or more processors (202), a main memory (204), a read-only memory (206), a mass storage device (208), one or more communication ports (210), a bus (212), an external storage device (214), and a user interface (216). Elements of the computing system (200) may be operatively coupled to one another through the bus (212).
[0045] The one or more processors (202) may include microprocessors, microcontrollers, digital signal processors, system-on-chip devices, or application-specific integrated circuits configured to execute instructions. The one or more processors (202) may fetch, decode, and execute program instructions stored in the main memory (204), the read-only memory (206), or the mass storage device (208) to implement functionalities of the system (100) for generating natural-pronunciation phoneme sequences from code-mixed text, including functionalities of the text input module (102), the language detection module (104), the normalization module (106), the language-specific phonemizer modules (108), the phoneme sequence merger module (110), and the text encoder (112).
[0046] The main memory (204) may include volatile storage such as random-access memory configured to temporarily hold program instructions, intermediate data, and runtime state associated with execution of software implementing the system (100). The read-only memory (206) may include non-volatile storage configured to store boot firmware, initialization routines, or configuration parameters used during startup and operation of the computing system (200). The mass storage device (208) may include non-volatile storage such as a hard disk drive or solid-state drive configured to store software modules, language models, phoneme inventories, configuration files, and logged data generated during operation of the system (100).
[0047] The bus (212) may include one or more interconnect structures configured to transfer data and control signals among the one or more processors (202), the main memory (204), the read-only memory (206), the mass storage device (208), the communication ports (210), the external storage device (214), and the user interface (216). The bus (212) may support direct memory access and memory-mapped input/output to facilitate efficient data transfer between storage components and the one or more processors (202) during phonemization and text encoding operations.
[0048] The one or more communication ports (210) may be configured to provide bidirectional connectivity between the computing system (200) and external devices or networks that supply the code-mixed text input or consume encoded representations and synthesized speech generated by the system (100). The one or more communication ports (210) may include wired or wireless interfaces such as Ethernet interfaces, wireless network interfaces, or other suitable communication interfaces capable of exchanging requests, responses, and data streams with remote services or client applications.
[0049] The external storage device (214) may be coupled to the bus (212) and may include removable media or remotely accessible storage used to store additional language resources, training datasets, or backup copies of models and configuration data employed by the system (100). The external storage device (214) may allow model updates or configuration changes to be imported into the computing system (200) without modifying the mass storage device (208).
[0050] The user interface (216) may provide local interaction with the computing system (200). The user interface (216) may include display devices, input devices, or graphical control panels that allow an operator to configure language settings, inspect intermediate phoneme sequences, initiate testing of the system (100), or monitor operational status and diagnostic information.
[0051] The configuration illustrated in FIG. 2 may be considered exemplary, and functional components of the computing system (200) may be combined, separated, or distributed across multiple physical machines or cloud-based infrastructure without departing from the scope of the present disclosure. Program instructions for implementing functionalities of the system (100) may be stored in one or more non-transitory computer-readable media associated with the main memory (204), the read-only memory (206), the mass storage device (208), or the external storage device (214), and may be executed by the one or more processors (202).
[0052] Referring now to FIG. 3, an example block diagram of a server system (300) is illustrated, in accordance with one or more embodiments of the present disclosure. The server system (300) may provide centralized or distributed computing resources for deploying the system (100) for generating natural-pronunciation phoneme sequences from code-mixed text. In some embodiments, one or more functionalities of the text input module (102), the language detection module (104), the normalization module (106), the language-specific phonemizer modules (108), the phoneme sequence merger module (110), and the text encoder (112) may be implemented using or hosted by the server system (300).
[0053] In one embodiment, the server system (300) may include one or more processors (302). The one or more processors (302) may include central processing units, graphics processing units, digital signal processors, or application-specific integrated circuits configured to execute computer-readable instructions. The one or more processors (302) may coordinate execution of software pipelines for language detection, text normalization, phonemization, and text encoding associated with processing the code-mixed text input.
[0054] In one embodiment, the server system (300) may include a memory (304) for volatile and/or non-volatile storage of instructions and runtime data. The memory (304) may store model parameters, configuration state, and intermediate representations generated while the system (100) processes code-mixed text input into the unified phoneme sequence and encoded representations. The memory (304) may further cache frequently used language resources, such as tokenization rules, normalization rules, and phoneme inventories, to reduce latency during inference.
[0055] In one embodiment, the server system (300) may include one or more interfaces (306) configured to support communication between the server system (300), external client applications, and other computing systems. The one or more interfaces (306) may allow the server system (300) to receive code-mixed text input from remote devices, return generated unified phoneme sequences or synthesized speech, and exchange status messages, configuration updates, or monitoring data over wired or wireless links.
[0056] In one embodiment, the server system (300) may include a processing engine (308) configured to orchestrate server-side workflows. The processing engine (308) may schedule and manage execution of requests across the language detection module (104), the normalization module (106), the language-specific phonemizer modules (108), the phoneme sequence merger module (110), and the text encoder (112), and may allocate computational resources to balance throughput and latency for multiple concurrent code-mixed text processing sessions.
[0057] In one embodiment, the server system (300) may include a database (310) configured to persist data used by or generated from the system (100). The database (310) may store language models, phoneme inventories, configuration profiles, logging information related to processing of code-mixed text input, and anonymized usage statistics that may support monitoring or future optimization of the language detection and phonemization pipeline.
[0058] In one embodiment, the server system (300) may include a machine learning accelerator (312). The machine learning accelerator (312) may include specialized hardware for accelerating execution of machine-learned models used by the language detection module (104), the language-specific phonemizer modules (108), or the text encoder (112), thereby reducing inference latency and enabling real-time or near-real-time generation of unified phoneme sequences and encoded representations for code-mixed text input.
[0059] In one embodiment, the server system (300) may include one or more administrative interfaces (314). The one or more administrative interfaces (314) may allow authorized users to configure language support, update model versions, adjust normalization and phonemization parameters, review system diagnostics, and manage access policies for services provided by the server system (300). The one or more administrative interfaces (314) may support authenticated access and role-based permissions to maintain secure operation of the system (100).
[0060] The configuration shown in FIG. 3 may be considered illustrative. The server system (300) may be implemented on a single physical machine, distributed across a cluster of machines, or deployed within a cloud-computing environment. Functional components of the server system (300) may be combined, virtualized, or distributed across multiple nodes while still providing the described support for the system (100) for generating natural-pronunciation phoneme sequences from code-mixed text.
[0061] Referring now to FIG. 4, an example flow diagram of a method (400) for processing cross-lingual code-mixed text is illustrated, in accordance with one or more embodiments of the present disclosure. The method (400) may be implemented using the system (100) for generating natural-pronunciation phoneme sequences from code-mixed text, and may include steps (402) through (416) as described below.
[0062] At step (402), the method (400) may include receiving a cross-lingual code-mixed input text. The cross-lingual code-mixed input text may include words or sub-words drawn from two or more different natural languages and may be supplied, for example, by an upstream text generation engine or a client application.
[0063] At step (404), the method (400) may include performing context-neighbors based text language detection on the cross-lingual code-mixed input text. In this step, the method (400) may determine, for each token or group of tokens, an origin language based on neighboring tokens and sentence context so as to identify language 1, language 2, through language N present in the cross-lingual code-mixed input text.
[0064] At step (406), the method (400) may include performing text normalization for respective languages identified at step (404). For example, language-specific text normalization for language 1, language 2, and language N may be applied independently so that numerals, abbreviations, or short forms in each language are expanded into normalized words or sub-words consistent with language-specific rules.
[0065] At step (408), the method (400) may include generating a merged normalized text. The merged normalized text may include a single sequence in which normalized tokens from language 1, language 2, and language N are interleaved in the original order of the cross-lingual code-mixed input text while preserving language labels for subsequent processing.
[0066] At step (410), the method (400) may include performing each-word native language identification over the merged normalized text. In some embodiments, this step may refine or confirm the origin language of each word or sub-word and may output a mapping from each normalized token to a corresponding native language, such as language 1, language 2, or language N.
[0067] At step (412), the method (400) may include routing each normalized token to a language-specific grapheme-to-phoneme (G2P) operation associated with the native language identified at step (410). For example, tokens mapped to language 1 may be processed by a language 1 G2P, tokens mapped to language 2 may be processed by a language 2 G2P, and tokens mapped to language N may be processed by a language N G2P, thereby generating respective phonemized sequences for the normalized tokens in their native languages.
[0068] At step (414), the method (400) may include generating a merged phonemized sequence by concatenating or otherwise combining the phonemized sequences produced for language 1, language 2, and language N in accordance with the token order of the merged normalized text. The merged phonemized sequence may represent the entire cross-lingual utterance as a single phoneme stream.
[0069] At step (416), the method (400) may include providing output a cross-lingual unified phonemized sequence. In some embodiments, the cross-lingual unified phonemized sequence may be represented in a shared phoneme space defined by a unified phoneme inventory and may be provided to the text encoder (112) or another downstream component for use in text-to-speech synthesis or voice cloning, thereby enabling natural-accent rendering of the cross-lingual code-mixed input text.
[0070] One or more steps of the method (400) may be performed in a different order, may be combined, may be omitted, or may be supplemented with additional steps, provided that such modifications remain consistent with processing cross-lingual code-mixed text into a cross-lingual unified phonemized sequence within the scope of the present disclosure.
[0071] In one embodiment, the system (100) may address limitations of existing text processing pipelines used in multilingual text-to-speech engines and voice-assistant platforms. Conventional pipelines may expect the input text to include explicit language tags or structured markup, such as tags embedded in a speech synthesis markup language, to indicate which portions of an utterance belong to which language. When such tags are missing, incomplete, or erroneous, the conventional pipelines may treat the entire sentence as belonging to a single default language, causing subsequent text normalization and phonemization steps to ignore actual language switches present in code-mixed text. The system (100) may instead rely on context-neighbors based language detection performed by the language detection module (104) and may therefore operate correctly on raw cross-lingual code-mixed text input without requiring external tagging discipline from upstream systems.
[0072] In one embodiment, the system (100) may be particularly suited to code-mixed text generated by large language models or other conversational engines used in voice-assistant scenarios, where strict adherence to language-tagging and script-conversion guidelines may be difficult to guarantee. The text input module (102) may accept such free-form outputs directly, while the language detection module (104) and the normalization module (106) may internally infer language boundaries and apply language-specific rules, thereby reducing integration burden on client applications and improving robustness when upstream components evolve or behave unpredictably.
[0073] In one embodiment, the system (100) may mitigate pronunciation errors that arise when proper nouns and other local entities are processed as if they belonged to a default language, such as English, instead of their true origin language. In conventional text-to-speech systems, person names, city names, or place names that originate from Indic languages may be parsed and phonemized using English-centric rules, leading to unnatural vowel quality, stress placement, and consonant realization. By contrast, the language detection module (104) may determine an origin language for such entities based on neighboring context and lexical patterns, and the normalization module (106) may retain that origin language information through normalization.
[0074] In one embodiment, the one or more language-specific phonemizer modules (108) may then generate phoneme sequences for these detected proper nouns using phonotactic and grapheme-to-phoneme rules associated with the corresponding origin language, so that the phoneme sequence merger module (110) may produce a unified phoneme sequence that preserves native-sounding pronunciation for local entities. As a result, downstream text-to-speech synthesis or voice cloning using the text encoder (112) may generate speech in which embedded names and place references align closely with the expectations of native speakers of the underlying languages, thereby improving perceived naturalness and intelligibility.
[0075] In one embodiment, the unified phoneme sequence generated by the phoneme sequence merger module (110) may be represented in a phoneme inventory that is compatible with an international phonetic standard, such as an inventory inspired by the International Phonetic Alphabet (IPA), so that different natural languages share a common phonetic space. The text encoder (112) may map this unified phoneme sequence into continuous-valued embeddings that capture cross-lingual phonetic relationships, enabling a single model to operate effectively over code-mixed content without maintaining language-specific character vocabularies.
[0076] In one embodiment, the unified phoneme sequence produced by the system (100) may be used not only for text-to-speech synthesis or voice cloning, but also as an intermediate representation for other text-understanding models that benefit from phonetic information. For example, downstream models may include intent classification models, named-entity recognition models, or other natural-language processing components that may consume the encoded representation generated by the text encoder (112) as an input feature space. By operating on a shared phoneme-space representation of code-mixed text, such downstream models may achieve improved robustness to spelling variation, transliteration, and accent-specific orthographic conventions while remaining within the scope of the present disclosure.
[0077] In one embodiment, the unified phoneme sequence generated by the phoneme sequence merger module (110) may be expressed using a symbol inventory aligned with an international phonetic standard, such as an inventory based on the International Phonetic Alphabet (IPA). In such an embodiment, each language-specific phonemizer module (108) may map graphemes or sub-graphemic units of the corresponding natural language into IPA-like phoneme symbols that capture segmental distinctions such as manner of articulation, place of articulation, voicing, and vowel quality. The phoneme sequence merger module (110) may then concatenate or otherwise combine the IPA-like phoneme symbols from multiple languages into the unified phoneme sequence while remaining in a single shared phonetic space. By employing an IPA-inspired phoneme inventory, the system (100) may provide a linguistically grounded representation that facilitates comparison, analysis, and model sharing across different languages.
[0078] In one embodiment, the method (400) may perform explicit tokenization of the normalized text prior to language-specific phonemization. After language-specific text normalization at step (406), the merged normalized text generated at step (408) may be segmented into tokens using a delimiter-based scheme, such as splitting on whitespace characters or on a predetermined delimiter symbol inserted during normalization. The language detection module (104) and the one or more language-specific phonemizer modules (108) may operate at the level of these tokens, which may correspond to words or sub-words, thereby enabling the method (400) to maintain a clear alignment between textual units and corresponding phoneme subsequences. In some embodiments, the tokenization procedure may be configured to preserve delimiter information so that the phoneme sequence merger module (110) may reconstruct appropriate boundaries when assembling the unified phoneme sequence.
[0079] In one embodiment, the use of a unified phoneme inventory and cross-lingual processing pipeline may yield several technical advantages for models that consume the unified phoneme sequence. For example, the language-specific phonemizer modules (108) and the phoneme sequence merger module (110) may reduce pronunciation errors by ensuring that each word or sub-word is phonemized using rules appropriate to the origin language, thereby improving segmental accuracy and prosody consistency in downstream text-to-speech synthesis or voice cloning driven by the text encoder (112). In another embodiment, the text encoder (112) may learn shared representations over the unified phoneme sequence that generalize across languages, which may accelerate convergence during training and may reduce the need for separate language-specific encoders. By presenting the mixed-language utterance as a single sequence in a shared phoneme space, the system (100) may achieve improved modeling efficiency and robustness for multilingual and code-mixed scenarios while remaining within the scope of the present disclosure.
[0080] In one embodiment, operation of the system (100) and the method (400) may be illustrated using a concrete cross-lingual example. A code-mixed input sentence received by the text input module (102) at step (402) of the method (400) may include a sequence of tokens drawn from multiple natural languages and scripts, such as a mixture of Indic language words in a native script interleaved with English words in a Latin script. The language detection module (104) may, at step (404), infer an origin language label for each token based on neighboring context so that tokens belonging to a first language, a second language, or additional languages are identified even when some tokens appear in transliterated form. The normalization module (106) may, at step (406), apply language-specific normalization rules to convert numerals, abbreviations, and short forms into normalized words or sub-words for each identified language, and the merged normalized text generated at step (408) may preserve the token order of the original input while associating each token with a corresponding origin language.
[0081] In one embodiment, the method (400) may then include performing native language identification per word at step (410) to refine the mapping from normalized tokens to their respective native languages before routing each token to a language-specific grapheme-to-phoneme operation at step (412). For example, tokens labeled as belonging to a first language may be passed to a first language-specific phonemizer module (108), while tokens labeled as belonging to a second language may be passed to a second language-specific phonemizer module (108), thereby generating phoneme subsequences for each token in a unified phoneme inventory. The phoneme sequence merger module (110) may, at step (414), merge these phoneme subsequences in accordance with the token order to produce a merged phonemized sequence, and the method (400) may include providing output, at step (416), a cross-lingual unified phonemized sequence that explicitly reflects language transitions present in the example sentence while remaining within a single shared phoneme space.
[0082] While the foregoing describes example embodiments, other and further embodiments may be devised without departing from the scope defined by the embodiments, versions, and examples are non-limiting and are provided solely to enable a person having ordinary skill in the art to make and use the present disclosure in view of their general knowledge.
ADVANTAGES OF THE PRESENT DISCLOSURE
[0083] The present disclosure provides a system and a method for generating natural-pronunciation phoneme sequences from code-mixed text using context-aware language detection, language-specific text normalization, and language-specific phonemization in a unified phoneme space.
[0084] The present disclosure provides robust handling of cross-lingual code-mixed text without requiring explicit language tags or markup from upstream text-generation systems.
[0085] The present disclosure provides origin-language detection that operates independently of the script used to represent a word or sub-word, enabling correct routing of transliterated tokens to appropriate language-specific phonemizer modules.
[0086] The present disclosure provides improved pronunciation of proper nouns and other local entities by determining origin languages based on contextual and neighboring token information and applying corresponding language-specific phonemization rules.
[0087] The present disclosure provides a unified phoneme inventory and a cross-lingual unified phoneme sequence that facilitate efficient training and deployment of multilingual text-to-speech synthesis and voice cloning models.
[0088] The present disclosure provides consistent language-specific text normalization of numerals, abbreviations, and short forms across multiple languages, thereby reducing variability and improving the quality of downstream speech synthesis.
[0089] The present disclosure provides a phoneme-based representation that may be consumed by downstream text-understanding models, enhancing robustness to spelling variation, transliteration, and mixed-language usage in natural-language processing applications. , Claims:1. A system (100) for generating natural-pronunciation phoneme sequences from code-mixed text, the system (100) comprising: a text input module (102) configured to receive a code-mixed text input comprising words from two or more different natural languages; a language detection module (104) configured to determine, for each word or sub-word in the code-mixed text input, an origin language based on contextual and neighboring token information; a normalization module (106) configured to perform language-specific text normalization for each word or sub-word based on the origin language determined for the respective word or sub-word; one or more language-specific phonemizer modules (108), each corresponding to a different natural language, wherein the system (100) routes each normalized word or sub-word to a language-specific phonemizer module (108) matching the origin language of the respective word or sub-word to generate a respective phoneme sequence for that word or sub-word; and a phoneme sequence merger module (110) configured to merge the per-word or sub-word phoneme sequences into a unified phoneme sequence in a shared phoneme space. 2. The system (100) as claimed in claim 1, wherein the language detection module (104) is configured to determine the origin language of a word or sub-word independently of a script used to represent the word or sub-word, and to cause the system (100) to route the word or sub-word to a language-specific phonemizer module (108) corresponding to the determined origin language even when the word or sub-word is written in a different script. 3. The system (100) as claimed in claim 1, wherein the language detection module (104) is configured, for at least some words, to perform sub-word level origin language determination for respective sub-words when the word is composed of multiple sub-word tokens. 4. The system (100) as claimed in claim 1, wherein the normalization module (106) is configured to apply language-specific normalization rules to expand numerals, abbreviations, or short forms present in the code-mixed text input into full words in the origin language determined for respective words or sub-words. 5. The system (100) as claimed in claim 1, wherein each language-specific phonemizer module (108) is configured to output phoneme sequences in a unified phoneme inventory common across all natural languages handled by the system (100), such that the unified phoneme sequence generated by the phoneme sequence merger module (110) is represented in a shared phoneme space. 6. The system (100) as claimed in claim 1, further comprising a text encoder (112) configured to receive the unified phoneme sequence and generate an encoded representation for use in text-to-speech (TTS) synthesis or voice cloning, thereby enabling natural-accent speech output for the code-mixed text input. 7. The system (100) as claimed in claim 1, wherein the language detection module (104) is configured to leverage neighboring word context, comprising at least one preceding token and at least one following token, to resolve an origin language for ambiguous words or sub-words whose origin language is ambiguous when considered in isolation. 8. The system (100) as claimed in claim 1, wherein the code-mixed text input comprises proper nouns comprising one or more of person names, city names, or place names, and the system (100) is configured to determine an origin language for such proper nouns and to generate, using a language-specific phonemizer module (108), phoneme sequences that reflect pronunciation in the determined origin language. 9. The system (100) as claimed in claim 1, wherein the one or more language-specific phonemizer modules (108) comprise at least a first language-specific phonemizer module (108) corresponding to an Indic language and a second language-specific phonemizer module (108) corresponding to English. 10. A method for generating natural-pronunciation phoneme sequences from code-mixed text, the method comprising: receiving, by a text input module (102), a code-mixed text input comprising words from two or more different natural languages; determining, by a language detection module (104), for each word or sub-word in the code-mixed text input, an origin language based on contextual and neighboring token information; performing, by a normalization module (106), language-specific text normalization for each word or sub-word based on the origin language determined for the respective word or sub-word; routing, by a system (100) including one or more language-specific phonemizer modules (108) each corresponding to a different natural language, each normalized word or sub-word to a language-specific phonemizer module (108) matching the origin language of the respective word or sub-word to generate a respective phoneme sequence for that word or sub-word; and merging, by a phoneme sequence merger module (110), the per-word or sub-word phoneme sequences into a unified phoneme sequence in a shared phoneme space.