No (or low) cost sound solution

Mobi

Registered
Country flag
If you have a small rechargeable Bluetooth speaker that can offer ready made train sound solution.

Place the speaker inside loco (if space permits) or in a trailing wagon.

Then connect with your phone.

Technically you can play any sound via your phone but when I tried I found default sound players in phone often inserts a momentary pause when playing sounds in a loop.

So here is an AI generated code to play sounds in loop properly along with horn or other sounds playing simultaneously. This is plain JavaScript in HTML so any web browser can run it.

You need to source your own sounds though but that is easy as there are plenty of train sounds on internet.

You can use ffmepg utility to cut sounds to your needs using this command.
C:\Application\ffmpeg\bin\ffmpeg -ss 0:05 -i input.wav -t 0:03 output.m4a
assuming you want to extract from 0:05 seconds of input file for 3 seconds duration.

Of course, purists may frown upon this approach as the sound will not be speed dependent. However, you can manually play appropriate sound files for slow, medium and fast running of your chosen locomotive.

It works fine with my running style where I leave trains running in a loop at a fixed speed i.e. don't vary speed continuously.

I have attached the HTML file and some sample sounds for testing.
 

Attachments

Back
Top Bottom