diff --git a/gestures/startRadio.py b/gestures/startRadio.py
deleted file mode 100644
index 9ad8f0ec..00000000
--- a/gestures/startRadio.py
+++ /dev/null
@@ -1,24 +0,0 @@
-def startRadio(station):
- if runtime.isStarted("i01.audioPlayer"):
- audioPlayer = runtime.getService("i01.audioPlayer")
- audiocfg = audioPlayer.getConfig()
- print("Radio started")
- if audiocfg.stream == 0:
- audiocfg.stream = 1
- audioPlayer.save()
- audioPlayer.apply(audiocfg)
- audioPlayer.broadcastState()
- print(station)
- audioPlayer.playFile(station)
-
-def stopRadio():
- if runtime.isStarted('i01.audioPlayer'):
- audioPlayer = runtime.getService('i01.audioPlayer')
- audioPlayer.stop()
- print("Radio stopped")
- audiocfg = audioPlayer.getConfig()
- if audiocfg.stream == 1:
- audiocfg.stream = 0
- audioPlayer.save()
- audioPlayer.apply(audiocfg)
- audioPlayer.broadcastState()
\ No newline at end of file
diff --git a/peers/ProgramAB/fr-FR/aiml/jukebox.aiml b/peers/ProgramAB/fr-FR/aiml/jukebox.aiml
index a6a4c044..c59d8d70 100644
--- a/peers/ProgramAB/fr-FR/aiml/jukebox.aiml
+++ b/peers/ProgramAB/fr-FR/aiml/jukebox.aiml
@@ -241,6 +241,8 @@
END_PLAYLIST
Je suis arrivé à la fin de la playlist. Je remonte au début de la liste.
+
+
* RADIO *
Okay, je lance la radio .
@@ -258,6 +260,27 @@
"http://cdn.nrjaudio.fm/adwz1/fr/30407/mp3_128.mp3?origine=fluxradios"
+
+ "http://icecast.radiofrance.fr/francemusiqueconcertsradiofrance-midfi.mp3"
+
+
+ "http://cdn.nrjaudio.fm/adwz1/fr/55495/mp3_128.mp3"
+
+
+ "http://wr.lmn.fm/e1-wr5.mp3"
+
+
+ "http://jazz-wr01.ice.infomaniak.ch/jazz-wr01-128.mp3"
+
+
+ "http://cdn.nrjaudio.fm/adwz1/fr/30605/mp3_128.mp3?"
+
+
+ "http://cdn.nrjaudio.fm/adwz2/fr/30001/mp3_128.mp3?origine=fluxradios"
+
+
+ "http://stream.rfm.fr/rfm-wr4.mp3"
+
@@ -270,6 +293,48 @@
+
+ * MUSIQUE CLASSIQUE
+ Voici une radio classique.
+
+
+ python
+ exec
+ startRadio("http://icecast.radiofrance.fr/francemusiqueconcertsradiofrance-midfi.mp3")
+
+
+ APPSMILE
+
+
+
+
+ * MUSIQUE DE JAZZ
+ Voici une radio de jazz
+
+
+ python
+ exec
+ startRadio("http://jazz-wr01.ice.infomaniak.ch/jazz-wr01-128.mp3")
+
+
+ APPSMILE
+
+
+
+
+ * MUSIQUE DE FILM
+ Voici une station radio de musique de films
+
+
+ python
+ exec
+ startRadio("http://icecast.radiofrance.fr/francemusiquelabo-midfi.mp3")
+
+
+ APPSMILE
+
+
+
STOP LA RADIO
Voilà, la radio est éteinte.
@@ -290,4 +355,26 @@
STOP LA RADIO
+
+
+ STOPPE LA RADIO
+
+ STOP LA RADIO
+
+
+
+
+ STOPPE LA MUSIQUE
+
+ STOP LA RADIO
+
+
+
+
+ ÉTEINS LA RADIO
+
+ STOP LA RADIO
+
+
+
\ No newline at end of file
diff --git a/services/1_AudioFile.py b/services/1_AudioFile.py
index 024b7fd1..e07b95b6 100644
--- a/services/1_AudioFile.py
+++ b/services/1_AudioFile.py
@@ -133,3 +133,27 @@ def previousPlay():
else:
i01.warn("i01.chatBot needs to be started")
+def startRadio(station):
+ if runtime.isStarted("i01.audioPlayer"):
+ audioPlayer = runtime.getService("i01.audioPlayer")
+ audiocfg = audioPlayer.getConfig()
+ print("Radio started")
+ if audiocfg.stream == 0:
+ audiocfg.stream = 1
+ audioPlayer.save()
+ audioPlayer.apply(audiocfg)
+ audioPlayer.broadcastState()
+ print(station)
+ audioPlayer.playFile(station)
+
+def stopRadio():
+ if runtime.isStarted('i01.audioPlayer'):
+ audioPlayer = runtime.getService('i01.audioPlayer')
+ audioPlayer.stop()
+ print("Radio stopped")
+ audiocfg = audioPlayer.getConfig()
+ if audiocfg.stream == 1:
+ audiocfg.stream = 0
+ audioPlayer.save()
+ audioPlayer.apply(audiocfg)
+ audioPlayer.broadcastState()