IP Library › Granted Patent US 12,609,106
Granted Patent B2
US 12,609,106 · App. 18/544,354 · Granted Apr 21, 2026

Emotive text-to-speech with auto detection of emotions

Inventors: Arindrima Datta (New York, NY); Rakesh Narayan Iyer (Mountain View, CA)
Assignee: Google LLC
G10L13/08G10L13/10G10L25/63G10L25/30
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,609,106
App. No.
18/544,354
Granted
Apr 21, 2026
Kind
B2
Abstract

A method of providing emotive text-to-speech includes obtaining input text characterizing a natural language response generated by an assistant LLM to a query input by a user during a conversation between the user and the assistant LLM, and processing, using the assistant LLM, the input text conditioned on an emotion detection task prompt to predict, as output from the assistant LLM, an emotional state of the natural language response. The method also includes determining, based on the emotional state of the natural language response predicted as output from the assistant LLM, an emotional embedding for the input text and instructing a TTS model to process the input text and the emotional embedding to generate a synthesized speech representation of the natural language response conveying the emotional state of the natural language response as specified by the emotional embedding.

Claims (84)

1 . A computer-implemented method executed on data processing hardware that causes the data processing hardware to perform operations comprising:

obtaining input text characterizing a natural language response generated by an assistant large language model (LLM) to a query input by a user during a conversation between the user and the assistant LLM;

receiving a fine-tuned prompt embedding, the fine-tuned prompt embedding comprising a soft prompt configured to guide the assistant LLM to detect an emotional state of the input text from a set of possible emotional states while parameters of the assistant LLM are held fixed;

processing, using the assistant LLM, the input text conditioned on an emotion detection task prompt and the fine-tuned prompt embedding to predict, as output from the assistant LLM, an emotional state of the natural language response, wherein the emotion detection task prompt specifies a task for the assistant LLM to detect the emotional state of the input text from the set of possible emotional states;

determining, based on the emotional state of the natural language response predicted as output from the assistant LLM, an emotional embedding for the input text, the emotional embedding specifying the emotional state of the natural language response for synthesizing the input text into expressive speech; and

instructing a text-to-speech (TTS) model to process the input text and the emotional embedding to generate a synthesized speech representation of the natural language response, the synthesized speech representation conveying the emotional state of the natural language response as specified by the emotional embedding.

2 . The method of claim 1 , wherein the operations further comprise:

receiving audio data characterizing an utterance of the query spoken by the user in natural language and captured by a user device; and

performing speech recognition on the audio data to generate a textual representation of the query spoken by the user.

3 . The method of claim 1 , wherein the fine-tuned prompt embedding is learned during a prompt embedding fine-tuning process by:

initializing a prompt embedding as fixed-length sequence of learnable vectors;

receiving a training dataset of natural language training utterances, each natural language training utterance comprising:

a corresponding textual representation of the natural language training utterance; and

a corresponding ground-truth emotional state of the natural language training utterance; and

for each natural language training utterance in the training dataset:

processing, using the assistant LLM, the corresponding textual representation of the natural language training utterance to generate a corresponding predicted emotional state for the natural language training utterance as output from the assistant LLM;

determining a training loss based on the corresponding predicted emotional state and the corresponding ground-truth emotional state of the natural language training utterance; and

tuning, using the training loss, the prompt embedding by updating the learnable vectors while parameters of the assistant LLM are kept fixed.

4 . The method of claim 1 , wherein:

obtaining the input text characterizing the natural language response comprises processing, using the assistant LLM, a textual representation of the query input by the user to generate, as output from the assistant LLM, the input text characterizing the natural language response to the query; and

processing the input text conditioned on the emotion detection task prompt and the fine-tuned prompt embedding to predict the emotional state of the natural language response comprises, after the input text characterizing the natural language response to the query is output from the assistant LLM and provided as feedback to the assistant LLM, processing, using the assistant LLM, the input text conditioned on the emotion detection prompt and the fine-tuned prompt embedding to predict, as output from the assistant LLM, the emotional state of the natural language response.

5 . The method of claim 1 , wherein:

obtaining the input text characterizing the natural language response comprises processing, using the assistant LLM, a textual representation of the query input by the user to generate the input text characterizing the natural language response to the query; and

processing the input text conditioned on the emotion detection task prompt and the fine-tuned prompt embedding to predict the emotional state of the natural language response comprises processing, using the assistant LLM, the input text conditioned on the emotion detection task prompt and the fine-tuned prompt embedding to:

predict the emotional state of the natural language response; and

generate, as output, from the assistant LLM, marked-up text that includes the input text characterizing the natural language response annotated with the predicted emotional state of the natural language response.

6 . The method of claim 1 , wherein determining the emotional embedding specifying the emotional state of the natural language response for synthesizing the input text into expressive speech comprises accessing a two-dimensional embedding space that maps each respective emotional state from the set of possible emotional states to a different respective emotional embedding.

7 . A computer-implemented method executed on data processing hardware that causes the data processing hardware to perform operations comprising:

obtaining input text characterizing a natural language response generated by an assistant large language model (LLM) to a query input by a user during a conversation between the user and the assistant LLM, wherein the assistant LLM comprises a pre-trained LLM and a low-rank adaption training process fine-tunes a fraction of parameters of the pre-trained LLM to learn how to predict emotional states of input texts;

processing, using the assistant LLM, the input text conditioned on an emotion detection task prompt to predict, as output from the assistant LLM, an emotional state of the natural language response, wherein the emotion detection task prompt specifies a task for the assistant LLM to detect an emotional state of the input text from a set of possible emotional states;

determining, based on the emotional state of the natural language response predicted as output from the assistant LLM, an emotional embedding for the input text, the emotional embedding specifying the emotional state of the natural language response for synthesizing the input text into expressive speech; and

instructing a text-to-speech (TTS) model to process the input text and the emotional embedding to generate a synthesized speech representation of the natural language response, the synthesized speech representation conveying the emotional state of the natural language response as specified by the emotional embedding,

wherein the low-rank adaption training process fine-tunes the fraction of the pre-trained LLM by:

receiving a training dataset of natural language training utterances, each natural language training utterance comprising:

a corresponding textual representation of the natural language training utterance; and

a corresponding ground-truth emotional state of the natural language training utterance; and

for each natural language training utterance in the training dataset:

processing, using the assistant LLM, the corresponding textual representation of the natural language training utterance to generate a corresponding predicted emotional state for the natural language training utterance as output from the assistant LLM; and

determining a training loss based on the corresponding predicted emotional state and the corresponding ground-truth emotional state of the natural language training utterance; and

fine-tuning, using the training losses, the fraction of the parameters of the assistant LLM while a remaining portion of the parameters of the assistant LLM are kept fixed.

8 . A system comprising:

data processing hardware; and

memory hardware in communication with the data processing hardware, the memory hardware storing instructions that when executed on the data processing hardware cause the data processing hardware to perform operations comprising:

obtaining input text characterizing a natural language response generated by an assistant large language model (LLM) to a query input by a user during a conversation between the user and the assistant LLM;

receiving a fine-tuned prompt embedding, the fine-tuned prompt embedding comprising a soft prompt configured to guide the assistant LLM to detect an emotional state of the input text from a set of possible emotional states while parameters of the assistant LLM are held fixed;

processing, using the assistant LLM, the input text conditioned on an emotion detection task prompt and the fine-tuned prompt embedding to predict, as output from the assistant LLM, an emotional state of the natural language response, wherein the emotion detection task prompt specifies a task for the assistant LLM to detect the emotional state of the input text from the set of possible emotional states;

determining, based on the emotional state of the natural language response predicted as output from the assistant LLM, an emotional embedding for the input text, the emotional embedding specifying the emotional state of the natural language response for synthesizing the input text into expressive speech; and

instructing a text-to-speech (TTS) model to process the input text and the emotional embedding to generate a synthesized speech representation of the natural language response, the synthesized speech representation conveying the emotional state of the natural language response as specified by the emotional embedding.

9 . The system of claim 8 , wherein the operations further comprise:

receiving audio data characterizing an utterance of the query spoken by the user in natural language and captured by a user device; and

performing speech recognition on the audio data to generate a textual representation of the query spoken by the user.

10 . The system of claim 8 , wherein the fine-tuned prompt embedding is learned during a prompt embedding fine-tuning process by:

initializing a prompt embedding as fixed-length sequence of learnable vectors;

receiving a training dataset of natural language training utterances, each natural language training utterance comprising:

a corresponding textual representation of the natural language training utterance; and

a corresponding ground-truth emotional state of the natural language training utterance; and

for each natural language training utterance in the training dataset:

processing, using the assistant LLM, the corresponding textual representation of the natural language training utterance to generate a corresponding predicted emotional state for the natural language training utterance as output from the assistant LLM;

determining a training loss based on the corresponding predicted emotional state and the corresponding ground-truth emotional state of the natural language training utterance; and

tuning, using the training loss, the prompt embedding by updating the learnable vectors while parameters of the assistant LLM are kept fixed.

11 . The system of claim 8 , wherein:

obtaining the input text characterizing the natural language response comprises processing, using the assistant LLM, a textual representation of the query input by the user to generate, as output from the assistant LLM, the input text characterizing the natural language response to the query; and

processing the input text conditioned on the emotion detection task prompt and the fine-tuned prompt embedding to predict the emotional state of the natural language response comprises, after the input text characterizing the natural language response to the query is output from the assistant LLM and provided as feedback to the assistant LLM, processing, using the assistant LLM, the input text conditioned on the emotion detection prompt and the fine-tuned prompt embedding to predict, as output from the assistant LLM, the emotional state of the natural language response.

12 . The system of claim 8 , wherein:

obtaining the input text characterizing the natural language response comprises processing, using the assistant LLM, a textual representation of the query input by the user to generate the input text characterizing the natural language response to the query; and

processing the input text conditioned on the emotion detection task prompt and the fine-tuned prompt embedding to predict the emotional state of the natural language response comprises processing, using the assistant LLM, the input text conditioned on the emotion detection task prompt and the fine-tuned prompt embedding to:

predict the emotional state of the natural language response; and

generate, as output, from the assistant LLM, marked-up text that includes the input text characterizing the natural language response annotated with the predicted emotional state of the natural language response.

13 . The system of claim 8 , wherein determining the emotional embedding specifying the emotional state of the natural language response for synthesizing the input text into expressive speech comprises accessing a two-dimensional embedding space that maps each respective emotional state from the set of possible emotional states to a different respective emotional embedding.

14 . A system comprising:

data processing hardware; and

memory hardware in communication with the data processing hardware, the memory hardware storing instructions that when executed on the data processing hardware cause the data processing hardware to perform operations comprising:

obtaining input text characterizing a natural language response generated by an assistant large language model (LLM) to a query input by a user during a conversation between the user and the assistant LLM, wherein the assistant LLM comprises a pre-trained LLM and a low-rank adaption training process fine-tunes a fraction of parameters of the pre-trained LLM to learn how to predict emotional states of input texts;

processing, using the assistant LLM, the input text conditioned on an emotion detection task prompt to predict, as output from the assistant LLM, an emotional state of the natural language response, wherein the emotion detection task prompt specifies a task for the assistant LLM to detect an emotional state of the input text from a set of possible emotional states;

determining, based on the emotional state of the natural language response predicted as output from the assistant LLM, an emotional embedding for the input text, the emotional embedding specifying the emotional state of the natural language response for synthesizing the input text into expressive speech; and

instructing a text-to-speech (TTS) model to process the input text and the emotional embedding to generate a synthesized speech representation of the natural language response, the synthesized speech representation conveying the emotional state of the natural language response as specified by the emotional embedding,

wherein the low-rank adaption training process fine-tunes the fraction of the pre-trained LLM by:

receiving a training dataset of natural language training utterances, each natural language training utterance comprising:

a corresponding textual representation of the natural language training utterance; and

a corresponding ground-truth emotional state of the natural language training utterance; and

for each natural language training utterance in the training dataset:

processing, using the assistant LLM, the corresponding textual representation of the natural language training utterance to generate a corresponding predicted emotional state for the natural language training utterance as output from the assistant LLM; and

determining a training loss based on the corresponding predicted emotional state and the corresponding ground-truth emotional state of the natural language training utterance; and

fine-tuning, using the training losses, the fraction of the parameters of the assistant LLM while a remaining portion of the parameters of the assistant LLM are kept fixed.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 26, 2024
From: DATTA, ARINDRIMA; IYER, RAKESH NARAYAN
To: GOOGLE LLC
Reel/Frame 066895/0378 →
Continuity (1)
Related Publication 20250201233A1 · Jun 19, 2025
References Cited (24)
US 20180286383A1 · Barari · 2018 [cited by examiner]
US 20210287657A1 · Deng · 2021 [cited by examiner]
US 20210350795A1 · Kenter · 2021 [cited by examiner]
US 20220129621A1 · Guda · 2022 [cited by examiner]
US 20230099732A1 · Mukherjee · 2023 [cited by examiner]
US 20230252972A1 · Harazi · 2023 [cited by examiner]
US 20230298580A1 · Plauché · 2023 [cited by examiner]
US 20230351120A1 · Gelfenbeyn · 2023 [cited by examiner]
US 20240087597A1 · Byun · 2024 [cited by examiner]
US 20250166601A1 · Min · 2025 [cited by examiner]
US 20250182751A1 · Koneru · 2025 [cited by examiner]
US 20250193462A1 · Govindarajan · 2025 [cited by examiner]
US 20250200855A1 · Park · 2025 [cited by examiner]
CN 116704998A · 2023 [cited by examiner]
Feng, Yujie, et al. “Towards LLM-driven dialogue state tracking.” arXiv preprint arXiv:2310.14970. Oct. 2023, pp. 1-17. (Year: 2023). [cited by examiner]
Gong, Yuan, et al. “Joint audio and speech understanding.” 2023 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU). IEEE, Dec. 2023, pp. 1-8. (Year: 2023). [cited by examiner]
Jiang, Ziyue, et al. “Mega-tts: Zero-shot text-to-speech at scale with intrinsic inductive bias.” arXiv preprint arXiv:2306.03509. Jun. 2023, pp. 1-20. (Year: 2023). [cited by examiner]
Ng, Dianwen, et al. “Self-Tailoring Prompts for Parameter Efficient Tuning Speech Recognition.” Openreview.net, Sep. 2023, pp. 1-16. (Year: 2023). [cited by examiner]
Saito, Yuki, et al. “Chatgpt-edss: Empathetic dialogue speech synthesis trained from chatgpt-derived context word embeddings.” arXiv preprint arXiv:2305.13724. May 2023, pp. 1-5. (Year: 2023). [cited by examiner]
Zhang, Hanglei, et al. “Expressive tts driven by natural language prompts using few human annotations.” arXiv preprint arXiv:2311.01260, Nov. 2023, pp. 1-5. (Year: 2023). [cited by examiner]
Zhou, Xinyu, et al. “Towards joint modeling of dialogue response and speech synthesis based on large language model.” arXiv preprint arXiv:2309.11000. Sep. 2023, pp. 1-8. (Year: 2023). [cited by examiner]
Liu Yuchen et al: “Emotionally Situated Text-to-Speech Synthesis in User-Agent Conversation”, Proceedings of the 31st ACM International Conference on Multimedia, ACMPUB27, New York, NY, USA, Oct. 26, 2023, (Oct. 26, 202… [cited by applicant]
Ma Yukun et al: “A Survey on Empathetic Dialogue Systems”, Information Fusion, vol. 64, Jun. 25, 2020 (Jun. 25, 2020), pp. 50-70, XP055835654. [cited by applicant]
International Search Report and Written Opinion issued in related PCT Application NO. PCT/US2024/056661, dated Jan. 21, 2025. [cited by applicant]