Home | History | Annotate | Download | only in extensions

Lines Matching full:utterance

21   // Speak the given utterance with the given parameters if possible,
22 // and return true on success. Utterance will always be nonempty.
26 // The ExtensionTtsController will only try to speak one utterance at
31 const std::string& utterance,
57 // One speech utterance.
58 class Utterance {
60 // Construct an utterance given a profile, the text to speak,
62 // when the utterance is done speaking.
63 Utterance(Profile* profile,
67 ~Utterance();
93 // The profile that initiated this utterance.
96 // The extension ID of the extension providing TTS for this utterance, or
100 // The unique ID of this utterance, used to associate callback functions
104 // The id of the next utterance, so we can associate requests with
128 // The method to call when this utterance has completed speaking.
138 // Returns true if we're currently speaking an utterance.
141 // Speak the given utterance. If the utterance's can_enqueue flag is true
142 // and another utterance is in progress, adds it to the end of the queue.
143 // Otherwise, interrupts any current utterance and speaks this one
145 void SpeakOrEnqueue(Utterance* utterance);
150 // Called when an extension finishes speaking an utterance.
163 // Start speaking the given utterance. Will either take ownership of
164 // |utterance| or delete it if there's an error.
165 void SpeakNow(Utterance* utterance);
168 // underlying platform speech system has finished the current utterance,
169 // and if so finishes it and pops the next utterance off the queue.
172 // Clear the utterance queue.
175 // Finalize and delete the current utterance.
178 // Start speaking the next utterance in the queue.
182 // manifest that matches the speech parameters of this utterance,
184 std::string GetMatchingExtensionId(Utterance* utterance);
189 // The current utterance being spoken.
190 Utterance* current_utterance_;
193 std::queue<Utterance*> utterance_queue_;
211 Utterance* utterance_;