Skip to content

Commit

Permalink
choice of soundfiles generated
Browse files Browse the repository at this point in the history
  • Loading branch information
ene9ba committed Jul 19, 2022
1 parent bf90eee commit c84f9f5
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Firmware/LowLevel/include/soundsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#define BUFFERSIZE 100

#define NR_SOUNDFILES 3 // Number of Soundfiles on SD-card
#define NR_SOUNDFILES 15 // Number of Soundfiles on SD-card



Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 18 additions & 0 deletions Firmware/LowLevel/soundfiles/GoogleTTS_Strings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- file leading nr -- ------ string to convert ------------

0001 Hi, I am Steve, your open mower green care is my profession
0002 open mower start up successful
0003 Initializing robot operating system
0004 Starting map area recording
0005 waiting for rtk gps signal
0006 calculating map dimensions
0007 initiate mowing sequence
0008 emergency stop button triggered
0009 emergency wheel lift sensor triggered
0010 rain detected, heading back to base
0011 open mower has completed mowing the lawn, heading back to charging station
0012 stay back, autononous robot mower in use
0013 ups, I did it again
0014 Hallo, ich bin Tobi, dein intelligenter Rasemäher, Rasenpflege ist mein Beruf
0015 Hello, I am Tobi, your smart mower, green care ist my profession

8 changes: 5 additions & 3 deletions Firmware/LowLevel/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ void setup()
my_sound.setvolume(10);
delay(100);
my_sound.playSoundAdHoc(1);
delay(5000);
delay(6000);
p.neoPixelSetValue(0, 255, 255, 0, true);

}
Expand All @@ -487,9 +487,11 @@ void setup()
}

// Soundtest
my_sound.playSound(3);
my_sound.playSound(1);
my_sound.playSound(2);
my_sound.playSound(3);
my_sound.playSound(13);
my_sound.playSound(14);


int i = my_sound.sounds2play();

Expand Down
2 changes: 1 addition & 1 deletion Firmware/LowLevel/src/soundsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void MP3Sound::playSound(int soundNr)
{
if((soundNr > NR_SOUNDFILES) || (active_sounds.size() == BUFFERSIZE) ) return;

active_sounds.push_back(soundNr);
active_sounds.push_front(soundNr);

}

Expand Down

0 comments on commit c84f9f5

Please sign in to comment.