mumble-ruby audio problem

Ice/DBus, Web-Interfaces, Management tools
Post Reply
hamie
Posts: 7
Joined: 24 Jan 2016, 17:12

mumble-ruby audio problem

Post by hamie »

Needing some help I have mumble-ruby working and I'm trying to play a wave file that's 128kbps PCM S16LE 8000hz 16 bits per sample. It sounds like its being played in fast forward, Can someone offer me some help I'm on a linux platform

#!/usr/bin/env ruby
require 'mumble-ruby'
cli = Mumble::Client.new('localhost', 64738, 'user','pass')
cli.connect
sleep(1)
cli.join_channel('PTT-OPS')
cli.player.play_file('callsignannounce.wav')
cli.disconnect

User avatar
natenom
Team member
Team member
Posts: 79
Joined: 23 Sep 2009, 23:40
Location: Germany
Contact:

Re: mumble-ruby audio problem

Post by natenom »

Mumble uses a fixed samplerate of 48000 Hz. You need to convert your file... see https://github.com/erulabs/mumblebot for example ("How to make proper soundboard files").

Post Reply