Outils pour utilisateurs

Outils du site


en:txt:sons-images

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
en:txt:sons-images [2026/05/03 18:47] – Harmonize FR/EN language switch cyrilfiestaen:txt:sons-images [2026/09/06 19:02] (Version actuelle) – 4.14 : le texte TTS est lu sans affichage hors Discord cyrilfiesta
Ligne 1: Ligne 1:
 **Language / Langue :** [[fr:txt:sons-images|FR]] | **EN** **Language / Langue :** [[fr:txt:sons-images|FR]] | **EN**
  
-====== TXT — Sounds and Images ======+====== Sounds and images (.txt format) ======
  
-Use ''%%[[url]]%%'' for images and ''%%<<url>>%%'' for sounds.+===== Sounds ===== 
 + 
 +The bot joins the **JDR-Bot** voice channel automatically, when it exists, at the start of every game, and leaves it when the game ends or is given up. 
 + 
 +To play a sound, surround its URL with ''<<'' and ''>>'':
  
 <code> <code>
-[[https://example.com/image.png]] +The dragon roars! <<https://example.com/sounds/roar.mp3>> You take 10 damage.
-<<https://example.com/sound.mp3>>+
 </code> </code>
  
-Use ''<<stop>>'' to stop sounds.+Supported formats: ''.mp3'', ''.ogg'', ''.wav'' 
 + 
 +Without an audio extension, the content is read aloud without being displayed: 
 +<code> 
 +<<Welcome to the adventure!>> 
 +</code> 
 +Discord uses native TTS messages, which remain visible; Web, Desktop and standalone exports use the device's speech synthesis without displaying the content. The Terminal has no speech synthesis and ignores it. To display the text too, write it normally in addition to the tag. 
 + 
 +  * One sound at a time: if a sound is playing, it is stopped before the next one starts. 
 +  * A sound plays **once**, not in a loop. It plays again if the player comes back to the room. 
 + 
 +===== Images ===== 
 + 
 +To display an image, surround its URL with ''%%[[%%'' and ''%%]]%%'': 
 + 
 +<code> 
 +You uncover an old map. 
 +[[https://example.com/images/map.png]] 
 +What will you do with it? 
 +</code> 
 + 
 +The URL must start with ''http'' or ''https''. Supported formats: ''.png'', ''.jpg'', ''.gif'', ''.webp'' 
 + 
 +The image is displayed between the two blocks of text. 
 + 
 +===== Available sounds ===== 
 + 
 +Royalty-free sounds are hosted on the official server: 
 +[[https://cyril-fiesta.fr/jdr-bot/scenarios/sounds/]] 
en/txt/sons-images.1777826878.txt.gz · Dernière modification : de cyrilfiesta