Gaim的聲音

火星人 @ 2014-03-23 , reply:0
←手機掃碼閱讀


在KDE里裝了一個Gaim上Google Talk,不過一直沒有聲音,非常不方便,有消息來的時候都沒法提醒,在Ubuntu的論壇上搜索到了一個解決方法,如下:

在gaim的sounds選項卡里,把Method設置成command,然後在下面的框中輸入"aplay -q %s",這樣gaim就能發音了。

aplay的用途是對特定文件使用ALSA來播放之。具體用法如下:
aplay
aplay [options] [file]

Play sound files using the ALSA sound system. The related arecord records sound files.

Options
-h
Print help message, then exit.

--version
Print version and quit.

-l,--list-devices
List available sound cards and digital audio devices.

-L,--list-pcms
List all PCM (pulse-coded modulation, or digital audio) devices that have been defined. PCMs may be defined in the .asoundrc file.

-D,--device=devicename
Select a PCM device by name.

-q
Do not display messages.

-t,--file-type=type
Name the file type used. Files may be voc, wav, raw, or au.

-c,--channels=n
Use n channels: 1 for mono, 2 for stereo.

-f,--format=format
Specify the sample format. The sample formats available will depend on hardware. For CD and DAT output, use the cd and dat shortcuts, which set the sample rate, format, and channel numbers all at once.

-r,--rate=n
Set the sample rate in Hertz.

-d,--duration=n
Set an interrupt for n seconds after playback begins.

-s,--sleep-min=n




[火星人 via ] Gaim的聲音已經有155次圍觀

http://www.coctec.com/docs/linux/show-post-118413.html