| CPC G06F 15/7807 (2013.01) [G06F 9/4498 (2018.02); G10L 13/00 (2013.01)] | 8 Claims |

|
1. A system on a chip (SoC), comprising:
an on-screen display (OSD) circuit, arranged to control OSD of a text message;
a memory control circuit, coupled to a memory, and arranged to read a text-to-speech (TTS) data corresponding to the text message from the memory;
an audio processor, coupled to the memory control circuit, and comprising a TTS circuit, wherein the TTS circuit is arranged to:
receive the TTS data from the memory control circuit; and
generate an audio output according to at least the TTS data; and
a finite-state machine (FSM), coupled to the OSD circuit and the audio processor, and arranged to receive a TTS command from the OSD circuit and, according to the TTS command, control the audio processor to generate the audio output according to at least the TTS data;
wherein an initial state of the FSM is an audio preparing state, and when the FSM is in the audio preparing state, the FSM waits for the TTS circuit to receive an audio signal or waits for receiving the TTS command from the OSD circuit;
wherein when the TTS circuit receives the audio signal, a state of the FSM is transferred from the audio preparing state to an audio playback state for controlling playback of the audio signal; when the FSM is in the audio playback state and the FSM receives the TTS command from the OSD circuit, the state of the FSM is transferred from the audio playback state to a TTS playback state, and the FSM controls the TTS circuit to perform mixing processing according to the audio signal and the TTS data to generate the audio output; and after the TTS circuit generates the audio output, the state of the FSM is transferred from the TTS playback state to the audio playback state.
|