You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"speaking" queue is using 2-dimensional array with texts and priority. Priorities are Disabled, Low, Normal and High. Low are used for not much important info like Robbies random conversations, normal for standard results and high for very important informations like "I have no power source and battery is on 10%" for example. Disabled is used for special cases, when user can tell "Disable battery notifications" for example. First item in queue is actual output which stays until text is written and spoken. After that, first item is removed and first one with highest priority is processed using "speak" method in "speaking" thread. Exclude disabled, which are not removed completely, but waiting to potential change back to Low, Normal or High. Priority can be changed using modules except first one in queue which is running actually.
Threads
"speaking" thread is special thread for speech of text. It takes texts from "speaking" queue, displays them, use text to speech on them and take another one. When no items in queue, it waits.
"listening" thread is special thread for listening of inputs from user. When command for stopping of speak is used, text with stoping of talking is added to "speaking" queue and actual text to speed method in "speaking" thread is stopped.
Other threads have own names and are used for modules purposes.
The text was updated successfully, but these errors were encountered:
Queues
Threads
The text was updated successfully, but these errors were encountered: