Skip to content

Commit

Permalink
Menu structure for Volume and MusicFolder configuration
Browse files Browse the repository at this point in the history
In order to set the volume of the TeleJukebox and to configure which folder with MP3 files (playlist) should be used, a menu has been added. This menu is a classical spoken menu, where the user needs to make it's choice by dialing a number. In order to make this possible, the layout of the SD-card needed to be changed to be able to address all possible folders. This has reduced in some major code changes. To incoporate the state machine for the menu structure.
A timeout has been placed over the number sequence, this way the user cannot accidentally trigger an important settingsmenu or a harmless easter egg. Number sequences need to be dialed with a max delay of 5 seconds per digit, which is very acceptable in practice and prevent a lot of problems.
Also a mesage for dialing 112, 911 or 09008844 has been added.
  • Loading branch information
JanDerogee committed Feb 22, 2020
1 parent 4fd5ca0 commit fba3d6a
Show file tree
Hide file tree
Showing 165 changed files with 708 additions and 200 deletions.
Binary file removed SD-card/01/0001-dialtone.mp3
Binary file not shown.
Binary file removed SD-card/01/0002-disconnected.mp3
Binary file not shown.
Binary file removed SD-card/01/0003-number_out_of_service.mp3
Binary file not shown.
Binary file added SD-card/01/001-Zoek de zon op.mp3
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added SD-card/01/007-Twee motten.mp3
Binary file not shown.
File renamed without changes.
Binary file added SD-card/02/001.mp3
Binary file not shown.
Binary file added SD-card/02/002.mp3
Binary file not shown.
Binary file added SD-card/02/003.mp3
Binary file not shown.
Binary file added SD-card/02/004.mp3
Binary file not shown.
Binary file added SD-card/02/005.mp3
Binary file not shown.
Binary file added SD-card/02/006.mp3
Binary file not shown.
Binary file added SD-card/02/007.mp3
Binary file not shown.
Binary file added SD-card/02/008.mp3
Binary file not shown.
Binary file added SD-card/02/009.mp3
Binary file not shown.
Binary file added SD-card/02/010.mp3
Binary file not shown.
Binary file removed SD-card/02/1969.mp3
Binary file not shown.
Binary file removed SD-card/02/1976.mp3
Binary file not shown.
Binary file removed SD-card/02/1986.mp3
Binary file not shown.
Binary file removed SD-card/02/2006.mp3
Binary file not shown.
Binary file added SD-card/03/001.mp3
Binary file not shown.
Binary file added SD-card/03/002.mp3
Binary file not shown.
Binary file added SD-card/03/003.mp3
Binary file not shown.
Binary file added SD-card/03/004.mp3
Binary file not shown.
Binary file added SD-card/03/005.mp3
Binary file not shown.
Binary file added SD-card/03/006.mp3
Binary file not shown.
Binary file added SD-card/03/007.mp3
Binary file not shown.
Binary file added SD-card/03/008.mp3
Binary file not shown.
Binary file added SD-card/03/009.mp3
Binary file not shown.
Binary file added SD-card/03/010.mp3
Binary file not shown.
Binary file added SD-card/04/001.mp3
Binary file not shown.
Binary file added SD-card/04/002.mp3
Binary file not shown.
Binary file added SD-card/04/003.mp3
Binary file not shown.
Binary file added SD-card/04/004.mp3
Binary file not shown.
Binary file added SD-card/04/005.mp3
Binary file not shown.
Binary file added SD-card/04/006.mp3
Binary file not shown.
Binary file added SD-card/04/007.mp3
Binary file not shown.
Binary file added SD-card/04/008.mp3
Binary file not shown.
Binary file added SD-card/04/009.mp3
Binary file not shown.
Binary file added SD-card/04/010.mp3
Binary file not shown.
Binary file added SD-card/05/001.mp3
Binary file not shown.
Binary file added SD-card/05/002.mp3
Binary file not shown.
Binary file added SD-card/05/003.mp3
Binary file not shown.
Binary file added SD-card/05/004.mp3
Binary file not shown.
Binary file added SD-card/05/005.mp3
Binary file not shown.
Binary file added SD-card/05/006.mp3
Binary file not shown.
Binary file added SD-card/05/007.mp3
Binary file not shown.
Binary file added SD-card/05/008.mp3
Binary file not shown.
Binary file added SD-card/05/009.mp3
Binary file not shown.
Binary file added SD-card/05/010.mp3
Binary file not shown.
Binary file added SD-card/06/001.mp3
Binary file not shown.
Binary file added SD-card/06/002.mp3
Binary file not shown.
Binary file added SD-card/06/003.mp3
Binary file not shown.
Binary file added SD-card/06/004.mp3
Binary file not shown.
Binary file added SD-card/06/005.mp3
Binary file not shown.
Binary file added SD-card/06/006.mp3
Binary file not shown.
Binary file added SD-card/06/007.mp3
Binary file not shown.
Binary file added SD-card/06/008.mp3
Binary file not shown.
Binary file added SD-card/06/009.mp3
Binary file not shown.
Binary file added SD-card/06/010.mp3
Binary file not shown.
Binary file added SD-card/07/001.mp3
Binary file not shown.
Binary file added SD-card/07/002.mp3
Binary file not shown.
Binary file added SD-card/07/003.mp3
Binary file not shown.
Binary file added SD-card/07/004.mp3
Binary file not shown.
Binary file added SD-card/07/005.mp3
Binary file not shown.
Binary file added SD-card/07/006.mp3
Binary file not shown.
Binary file added SD-card/07/007.mp3
Binary file not shown.
Binary file added SD-card/07/008.mp3
Binary file not shown.
Binary file added SD-card/07/009.mp3
Binary file not shown.
Binary file added SD-card/07/010.mp3
Binary file not shown.
Binary file added SD-card/08/001.mp3
Binary file not shown.
Binary file added SD-card/08/002.mp3
Binary file not shown.
Binary file added SD-card/08/003.mp3
Binary file not shown.
Binary file added SD-card/08/004.mp3
Binary file not shown.
Binary file added SD-card/08/005.mp3
Binary file not shown.
Binary file added SD-card/08/006.mp3
Binary file not shown.
Binary file added SD-card/08/007.mp3
Binary file not shown.
Binary file added SD-card/08/008.mp3
Binary file not shown.
Binary file added SD-card/08/009.mp3
Binary file not shown.
Binary file added SD-card/08/010.mp3
Binary file not shown.
Binary file added SD-card/09/001.mp3
Binary file not shown.
Binary file added SD-card/09/002.mp3
Binary file not shown.
Binary file added SD-card/09/003.mp3
Binary file not shown.
Binary file added SD-card/09/004.mp3
Binary file not shown.
Binary file added SD-card/09/005.mp3
Binary file not shown.
Binary file added SD-card/09/006.mp3
Binary file not shown.
Binary file added SD-card/09/007.mp3
Binary file not shown.
Binary file added SD-card/09/008.mp3
Binary file not shown.
Binary file added SD-card/09/009.mp3
Binary file not shown.
Binary file added SD-card/09/010.mp3
Binary file not shown.
Binary file added SD-card/10/001.mp3
Binary file not shown.
Binary file added SD-card/10/002.mp3
Binary file not shown.
Binary file added SD-card/10/003.mp3
Binary file not shown.
Binary file added SD-card/10/004.mp3
Binary file not shown.
Binary file added SD-card/10/005.mp3
Binary file not shown.
Binary file added SD-card/10/006.mp3
Binary file not shown.
Binary file added SD-card/10/007.mp3
Binary file not shown.
Binary file added SD-card/10/008.mp3
Binary file not shown.
Binary file added SD-card/10/009.mp3
Binary file not shown.
Binary file added SD-card/10/010.mp3
Binary file not shown.
Binary file added SD-card/90/001-dialtone.mp3
Binary file not shown.
Binary file added SD-card/90/002-disconnected.mp3
Binary file not shown.
Binary file added SD-card/90/003-number_out_of_service.mp3
Binary file not shown.
Binary file added SD-card/90/004_Emergency number.mp3
Binary file not shown.
Binary file added SD-card/90/005_bestand_niet_gevonden.mp3
Binary file not shown.
Binary file not shown.
Binary file added SD-card/90/007_uitgeschakeld.mp3
Binary file not shown.
Binary file added SD-card/90/008_ingeschakeld.mp3
Binary file not shown.
Binary file added SD-card/90/009_silence_10sec.mp3
Binary file not shown.
Binary file added SD-card/90/010_0.mp3
Binary file not shown.
Binary file added SD-card/90/011_1.mp3
Binary file not shown.
Binary file added SD-card/90/012_2.mp3
Binary file not shown.
Binary file added SD-card/90/013_3.mp3
Binary file not shown.
Binary file added SD-card/90/014_4.mp3
Binary file not shown.
Binary file added SD-card/90/015_5.mp3
Binary file not shown.
Binary file added SD-card/90/016_6.mp3
Binary file not shown.
Binary file added SD-card/90/017_7.mp3
Binary file not shown.
Binary file added SD-card/90/018_8.mp3
Binary file not shown.
Binary file added SD-card/90/019_9.mp3
Binary file not shown.
Binary file added SD-card/90/021_10%.mp3
Binary file not shown.
Binary file added SD-card/90/022_20%.mp3
Binary file not shown.
Binary file added SD-card/90/023_30%.mp3
Binary file not shown.
Binary file added SD-card/90/024_40%.mp3
Binary file not shown.
Binary file added SD-card/90/025_50%.mp3
Binary file not shown.
Binary file added SD-card/90/026_60%.mp3
Binary file not shown.
Binary file added SD-card/90/027_70%.mp3
Binary file not shown.
Binary file added SD-card/90/028_80%.mp3
Binary file not shown.
Binary file added SD-card/90/029_90%.mp3
Binary file not shown.
Binary file added SD-card/90/030_100%.mp3
Binary file not shown.
Binary file added SD-card/90/100_dit is de telejukbox.mp3
Binary file not shown.
Binary file added SD-card/90/101_Welkom bij het menu.mp3
Binary file not shown.
Binary file added SD-card/90/102_Maak nu uw keuze.mp3
Binary file not shown.
Binary file added SD-card/90/103_Uw keuze is.mp3
Binary file not shown.
Binary file added SD-card/90/104_Volume.mp3
Binary file not shown.
Binary file added SD-card/90/105_Muziekmap.mp3
Binary file not shown.
Binary file added SD-card/90/108_Easter egg functie.mp3
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 added SD-card/90/131_De easter egg functie is nu.mp3
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed SD-card/MP3/0001-Voor haar.mp3
Binary file not shown.
Binary file removed SD-card/MP3/0004-In een rijtuigie.mp3
Binary file not shown.
Binary file removed SD-card/MP3/0007-Weet je nog wel.mp3
Binary file not shown.
20 changes: 0 additions & 20 deletions SD-card/_readme.txt

This file was deleted.

116 changes: 116 additions & 0 deletions SD-card_layout_and_speech.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
text na het draaien van 112 of 911:


Deze telefoon kan niet gebruikt worden voor alarm nummers. Gebruik een andere telefoon!
This telephone can not be used for emergency numbers. please use another phone!

-----------------------------------------------------------

https://ttsmp3.com/text-to-speech/Dutch/

Stem: Nederlands, Ruben
Stem: Engels, Brian

Voor een betere uitspraak van de woorden telejukebox en easter egg, dient men enegzins phonetische text in te voeren*/
-----------------------------------------------------------

Hou de knop ingedrukt tijdens het opnemen van de hoorn, de gebruiker hoort nu een tekst in de hoorn:
Dit is het instellingen menu van de telejukebox, een muzikale telefoon.
Echter� voor de telefoons zonder drukknop is dit een beetje een probleem. Daarom kan men ook in het menu komen door het draaien van een speciaal nummer een nummer wat men niet snel per ongeluk draait. Een handig nummer hiervoor zou zijn 738 (wat staat voor SET want 7=s, 3=e, 8=t).

Folder layout:
--------------
01 This folder contains the MP3 files to be played when folder selection is 1
02 This folder contains the MP3 files to be played when folder selection is 2
03 This folder contains the MP3 files to be played when folder selection is 3
04 This folder contains the MP3 files to be played when folder selection is 4
05 This folder contains the MP3 files to be played when folder selection is 5
06 This folder contains the MP3 files to be played when folder selection is 6
07 This folder contains the MP3 files to be played when folder selection is 7
08 This folder contains the MP3 files to be played when folder selection is 8
09 This folder contains the MP3 files to be played when folder selection is 9
10 This folder contains the MP3 files to be played when folder selection is 10
90 system audio folder, bevat kiestoon en dergelijke
99 easter egg audio folder, bevat easter egg gerelateerde songs en info

=========================================================================================================

Folder 01 .. 10 contents:
-------------------------
When the user dials a number, the a song rnaging from 0 to 9 is played
The files must have the followingname convention (max number of files is 10)
000-<name of song>.mp3 = this is the song that will be played when the user dials a 0
001-<name of song>.mp3 = this is the song that will be played when the user dials a 1
002-<name of song>.mp3 = this is the song that will be played when the user dials a 2
003-<name of song>.mp3 = this is the song that will be played when the user dials a 3
004-<name of song>.mp3 = this is the song that will be played when the user dials a 4
005-<name of song>.mp3 = this is the song that will be played when the user dials a 5
006-<name of song>.mp3 = this is the song that will be played when the user dials a 6
007-<name of song>.mp3 = this is the song that will be played when the user dials a 7
008-<name of song>.mp3 = this is the song that will be played when the user dials a 8
009-<name of song>.mp3 = this is the song that will be played when the user dials a 9

By default the folders are empty and need to be configured by the user.
However, to indicate that there is a problem, an MP3 file with some spoken text saying that the file is not available and that the SD-card should be configured should be on the card for every possible file in every possible folder.

Folder 90 contents:
-------------------

-messages-
001_dialtone.MP3 "dialtone file"
002_disconnected.MP3 "disconnected file"
003_number_out_of_service.MP3 "number has been disconnected or is no longer in service"
004_emergency number "deze telefoon kan niet worden gebruikt voor het draaien van alarm nummers"
005_... �Bestand niet gevonden�
006_... �Deze instelling is niet mogelijk�
007_... �uitgeschakeld�
008_... �ingeschakeld�
009_10sec silence " "(for ten secons)

-numbers-
011_1 �1�
012_2 �2�
013_3 �3�
014_4 �4�
015_5 �5�
016_6 �6�
017_7 �7�
018_8 �8�
019_9 �9�
020_0 �0�

021_10% �10%�
022_20% �20%�
023_30% �30%�
024_40% �40%�
025_50% �50%�
026_60% �60%�
027_70% �70%�
028_80% �80%�
029_90% �90%�
030_100% �100%�


-menu related-
100_... �Deze telefoon is een tele djoek boks. De huidige instellingen zijn:�
101_... �Welkom bij het configuratie menu van de tele djoek boks. U kunt kiezen uit meerdere instellingen. Voor het instellen van het volume, draai een 1. Voor het instellen van de muziekmap, draai een 2. Voor het instellen van de yster ech functie, draai een 3. Maak nu uw keuze, of verbreek de verbinding, om te annuleren.�
102_... "Maak nu uw keuze, of verbreek de verbinding, om te annuleren.�
103_... �U keuze is�
104_... �volume�
105_... �muziekmap�
106_... reserved for future use
107_... reserved for future use
108_... �yster ech functie�
109_... �De nieuwe instelling is opgeslagen, u kunt nu de verbinding verbreken.�

-menu item 1-
110_... �U koos voor 1, het instellen van het volume. U kunt het volume instellen in stappen van 10%. Als u het volume wilt instellen op 50%, draai dan een 5. Als u het volume wilt instellen op 100%, draai dan een 0.�
111_... �Het volume, is nu ingesteld op�

-menu item 2-
120_... �U koos 2, het instellen van de muziek map. U kunt kiezen uit 1 van de 10 mogelijke mappen op de SD-kaart in de tele djoek boks. Om gebruik te maken van muziek map 1, draai een 1. Om gebruik te maken van muziek map 2, draai een 2, enzovoorts. Om gebruik te maken van muziek map 10, draai een 0.�
121_... �De muziek map, is nu ingesteld op�

-menu item 3-
130_... �U koos 3, het instellen van de yster ech functie. Om deze functie in te schakelen, draai een 1. Om deze functie uit te schakelen, draai een 0.�
131_... �De yster ech functie is nu�
Loading

0 comments on commit fba3d6a

Please sign in to comment.