flipchess_voice.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #include "flipchess_voice.h"
  2. #include <furi.h>
  3. #include <furi_hal.h>
  4. #include "../sam/stm32_sam.h"
  5. STM32SAM voice;
  6. void flipchess_voice_shall_we_play() {
  7. if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
  8. voice.begin();
  9. voice.say("SHAAL WE PLAY AY GAME?");
  10. furi_hal_speaker_release();
  11. }
  12. }
  13. void flipchess_voice_which_side() {
  14. if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
  15. voice.begin();
  16. voice.say("WHICH SIDE DO YOU WANT?");
  17. furi_hal_speaker_release();
  18. }
  19. }
  20. void flipchess_voice_how_about_chess() {
  21. if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
  22. voice.begin();
  23. voice.say("HOW ABOUT A NICE GAME OF CHESS?");
  24. furi_hal_speaker_release();
  25. }
  26. }
  27. void flipchess_voice_a_strange_game() {
  28. if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
  29. voice.begin();
  30. voice.say("A STRANGE GAME... THE ONLY WINNING MOVE IS NOT TO PLAY.");
  31. furi_hal_speaker_release();
  32. }
  33. }