author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 03 Oct 2015 18:29:10 +0300 | |
changeset 1765 | 2132765de2f4 |
parent 1657 | b5bc03faed27 |
child 1905 | fba288d59662 |
permissions | -rw-r--r-- |
1192 | 1 |
.. -*- coding: utf-8; -*- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1192
diff
changeset
|
2 |
.. include:: HEADER.rst |
1192 | 3 |
|
4 |
======== |
|
5 |
Audio. |
|
6 |
======== |
|
7 |
.. contents:: |
|
8 |
||
9 |
Sound in Debian. |
|
10 |
================ |
|
11 |
||
12 |
* http://wiki.debian.org/ALSA |
|
13 |
* http://wiki.debian.org/SoundFAQ |
|
14 |
||
1350
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
15 |
Test speaker and microphone. |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
16 |
============================ |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
17 |
|
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
18 |
To configure audio devices:: |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
19 |
|
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
20 |
$ alsamixer |
1610 | 21 |
$ pavucontrol |
1350
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
22 |
|
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
23 |
To hier voice from mic in speaker:: |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
24 |
|
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
25 |
$ arecord | aplay |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
26 |
$ arecord -f cd | aplay -f cd |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
27 |
|
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
28 |
To list of available devices:: |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
29 |
|
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
30 |
$ aplay -l |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
31 |
$ aplay -L |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
32 |
$ arecord -l |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
33 |
$ arecord -L |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
34 |
|
1600 | 35 |
$ pactl list |
36 |
||
1630
e3bffa18d09d
Play simple sounds.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1610
diff
changeset
|
37 |
Play simple sounds. |
e3bffa18d09d
Play simple sounds.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1610
diff
changeset
|
38 |
=================== |
e3bffa18d09d
Play simple sounds.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1610
diff
changeset
|
39 |
:: |
e3bffa18d09d
Play simple sounds.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1610
diff
changeset
|
40 |
|
e3bffa18d09d
Play simple sounds.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1610
diff
changeset
|
41 |
$ sudo apt-get install sox |
e3bffa18d09d
Play simple sounds.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1610
diff
changeset
|
42 |
$ play -n synth sin 440 vol -40dB |
e3bffa18d09d
Play simple sounds.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1610
diff
changeset
|
43 |
$ play -n synth 10 square 100-10000 synth sin fmod 100 vol -40dB |
e3bffa18d09d
Play simple sounds.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1610
diff
changeset
|
44 |
|
1657 | 45 |
Check HDA params. |
46 |
================= |
|
47 |
:: |
|
48 |
||
49 |
$ sudo apt-get install alsa-tools-gui |
|
50 |
$ hdajackretask |
|
51 |
||
52 |
See also: |
|
53 |
||
54 |
http://www.alsa-project.org/main/index.php/HDA_Analyzer |
|
55 |
provides a graphical interface to access the raw HD-audio control |
|
56 |
||
1192 | 57 |
Suitable convertors? |
58 |
==================== |
|
59 |
:: |
|
60 |
||
61 |
$ sudo apt-get install ffmpeg |
|
62 |
||
63 |
or:: |
|
64 |
||
65 |
$ sudo apt-get install sox |
|
66 |
||
1630
e3bffa18d09d
Play simple sounds.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1610
diff
changeset
|
67 |
List of sox supported format: See sox(1). |
1192 | 68 |
|
1630
e3bffa18d09d
Play simple sounds.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1610
diff
changeset
|
69 |
List of ffmpeg supported format:: |
1192 | 70 |
|
71 |
$ ffmpeg -formats |
|
72 |
||
73 |
How convert amr to ogg/mp3? |
|
74 |
=========================== |
|
75 |
||
76 |
TODO |
|
77 |
||
78 |
How easy convert between mp3/wav/ogg? |
|
79 |
===================================== |
|
80 |
:: |
|
81 |
||
82 |
$ sox in.mp3 out.ogg |
|
83 |
$ sox in.ogg out.wav |
|
84 |
... etc |
|
85 |
||
86 |
How convert flac to mp3? |
|
87 |
======================== |
|
88 |
:: |
|
89 |
||
90 |
$ flac -c -d $file.flac | lame -m j -q 0 -V 0 -s 44.1 - $file.mp3 |
|
91 |
||
92 |
How convert wma to mp3? |
|
93 |
======================= |
|
94 |
:: |
|
95 |
||
96 |
$ mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $file.wma |
|
97 |
$ lame -m s audiodump.wav -o "$file.mp3 |
|
98 |
$ rm audiodump.wav |
|
99 |
||
100 |
How convert m4a to mp3? |
|
101 |
======================= |
|
102 |
:: |
|
103 |
||
104 |
$ faad -o - $file.m4a | lame -V 0 - $file.mp3 |
|
105 |
||
106 |
How split mp3/ogg files? |
|
107 |
======================== |
|
108 |
||
109 |
Split mp3 and ogg files:: |
|
110 |
||
111 |
$ mp3splt |
|
112 |
||
113 |
See:: |
|
114 |
||
115 |
http://mp3splt.sourceforge.net/mp3splt_page/home.php |
|
116 |
home page |