flipchess_voice.cpp 598 B

12345678910111213141516171819202122232425
  1. #include "flipchess_voice.h"
  2. #include <furi.h>
  3. #include <furi_hal.h>
  4. #include "../sam/stm32_sam.h"
  5. STM32SAM voice;
  6. int32_t flipchess_voice_game(void* p) {
  7. UNUSED(p);
  8. if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
  9. voice.begin();
  10. voice.say("SHAAL WE PLAY AY GAME?");
  11. furi_hal_speaker_release();
  12. }
  13. return 0;
  14. }
  15. int32_t flipchess_voice_no(void* p) {
  16. UNUSED(p);
  17. if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
  18. voice.begin();
  19. voice.say("No");
  20. furi_hal_speaker_release();
  21. }
  22. return 0;
  23. }