Configuring Sound in LISY
Related Config File Sections:
With LISY your can use the sound card of your original game including all the sounds of your game.
Note
You can alternatively use the built-in MPF sound system which supports more modern audio features. In that case you need to connect the sound card of your PC to the audio amp of your machine (not covered here).
You can configure the external LISY hardware sound interface like this:
hardware_sound_systems:
default:
label: LISY
Built-in sounds
Any built-in sounds can be played using their number in the original game:
#! hardware_sound_systems:
#! default:
#! label: LISY
hardware_sound_player:
some_event_to_play_sound2:
2:
action: play
some_event_to_stop_any_playing_sound: stop
Whatever those sounds loop or do not depends on the sound and the game.
In this case the event some_event_to_play_sound2
will play the sound
number 2. The event some_event_to_stop_any_playing_sound
will stop any
sound.
Additional sounds
You can play additional sounds by placing mp3 files on the SD-card.
Soundfiles need to be placed in the mpf config directory on the SD card
of the LISY system in the subdirectory hardwaresounds
. For LISY1 this
is /boot/mpfcfg/LISY1/xxx
and for LISY80 this is
/boot/mpfcfg/LISY80/xxx
(where xxx
is the game number set via S2
according to the appendix in the LISY user
manual).
#! hardware_sound_systems:
#! default:
#! label: LISY
hardware_sound_player:
play_file:
"some_file": play_file
play_file_loop:
"some_file":
action: play_file
platform_options:
loop: true
no_cache: false
Text-to-speech
LISY can also do text-to-speech:
#! hardware_sound_systems:
#! default:
#! label: LISY
hardware_sound_player:
event_to_play_text:
text:
action: text_to_speech
value: "Hello MPF"
platform_options:
loop: false
no_cache: true
Changing volume
Similarly, you can change volume:
#! hardware_sound_systems:
#! default:
#! label: LISY
hardware_sound_player:
event_to_set_volume_to_05:
set_volume:
action: set_volume
value: 0.5
increase_volume:
increase_volume:
action: increase_volume
value: 0.1
decrease_volume:
decrease_volume:
action: decrease_volume
value: 0.1
Sounds in a show
You can also use any of the actions above in a show instead of in a standalone Hardware Sound player:
#! hardware_sound_systems:
#! default:
#! label: LISY
##! show: test
- hardware_sounds:
text:
action: text_to_speech
value: "Hello MPF"
platform_options:
loop: false
no_cache: true
duration: 2s
What if it did not work?
Have a look at our LISY troubleshooting guide.
Something missing or wrong? You can fix it!
This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?
Please help us! You can fix it yourself and be an official "open source" contributor!
It's easy! See our Beginner's guide to editing the docs.
Page navigation via the keyboard: < >
You can navigate this site via the keyboard. There are two modes:
General navigation, when search is not focused:
- F , S , / : open search dialog
- P , , : go to previous page
- N , . : go to next page
While using the search function:
- Down , Up : select next / previous result
- Esc , Tab : close search
- Enter : go to highlighted page in the results