mumble-ruby audio problem

Ice/DBus, Web-Interfaces, Management tools

mumble-ruby audio problem

Postby hamie » Tue Apr 12, 2016 2:28 am

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
hamie
 
Posts: 6
Joined: Sun Jan 24, 2016 5:12 pm

Re: mumble-ruby audio problem

Postby natenom » Tue Apr 12, 2016 4:43 pm

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").
User avatar
natenom
Team member
Team member
 
Posts: 79
Joined: Wed Sep 23, 2009 11:40 pm
Location: Germany


Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron