Author image Zakariyya Mughal
and 4 contributors

NAME

Renard::Curie::Component::TTSWindow - Component used to control speech synthesis

VERSION

version 0.005

EXTENDS

CONSUMES

ATTRIBUTES

view_manager

The view manager model for this application.

CLASS METHODS

can_load_speech_synthesis

Returns true if the system can load Speech::Synthesis.

METHODS

BUILD

Constructor that sets up the TTS window and its buttons.

show_all

Show the TTS window.

speak

  method speak( (Str) $text )

Say the contents of $str.

update

  method update()

Updates the TTS window.

This sets the sentence label, sentence text, and plays the text if ViewManager::tts_playing is true.

CALLBACKS

on_clicked_button_play_cb

   callback on_clicked_button_play_cb( $button, $self )

Callback that toggles between play and pause states.

on_clicked_button_previous_cb

  callback on_clicked_button_previous_cb( $button, $self )

Calls ViewManager::choose_previous_sentence.

on_clicked_button_next_cb

  callback on_clicked_button_next_cb( $button, $self )

Calls ViewManager::choose_next_sentence.

AUTHOR

Project Renard

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Project Renard.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.