author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Tue, 01 Apr 2014 19:05:48 +0300 | |
changeset 1570 | e98df1173d31 |
parent 1350 | 69dff9ee90aa |
child 1600 | 391d3e19d99b |
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 |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
21 |
|
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
22 |
To hier voice from mic in speaker:: |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
23 |
|
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
24 |
$ arecord | aplay |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
25 |
$ arecord -f cd | aplay -f cd |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
26 |
|
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
27 |
To list of available devices:: |
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
28 |
|
69dff9ee90aa
Test speaker and microphone.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
29 |
$ aplay -l |
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 |
$ arecord -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 |
|
1192 | 34 |
Suitable convertors? |
35 |
==================== |
|
36 |
:: |
|
37 |
||
38 |
$ sudo apt-get install ffmpeg |
|
39 |
||
40 |
or:: |
|
41 |
||
42 |
$ sudo apt-get install sox |
|
43 |
||
44 |
List of sox supported format. |
|
45 |
============================= |
|
46 |
||
47 |
See sox(1). |
|
48 |
||
49 |
List of ffmpeg supported format. |
|
50 |
================================ |
|
51 |
:: |
|
52 |
||
53 |
$ ffmpeg -formats |
|
54 |
||
55 |
How convert amr to ogg/mp3? |
|
56 |
=========================== |
|
57 |
||
58 |
TODO |
|
59 |
||
60 |
How easy convert between mp3/wav/ogg? |
|
61 |
===================================== |
|
62 |
:: |
|
63 |
||
64 |
$ sox in.mp3 out.ogg |
|
65 |
$ sox in.ogg out.wav |
|
66 |
... etc |
|
67 |
||
68 |
How convert flac to mp3? |
|
69 |
======================== |
|
70 |
:: |
|
71 |
||
72 |
$ flac -c -d $file.flac | lame -m j -q 0 -V 0 -s 44.1 - $file.mp3 |
|
73 |
||
74 |
How convert wma to mp3? |
|
75 |
======================= |
|
76 |
:: |
|
77 |
||
78 |
$ mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $file.wma |
|
79 |
$ lame -m s audiodump.wav -o "$file.mp3 |
|
80 |
$ rm audiodump.wav |
|
81 |
||
82 |
How convert m4a to mp3? |
|
83 |
======================= |
|
84 |
:: |
|
85 |
||
86 |
$ faad -o - $file.m4a | lame -V 0 - $file.mp3 |
|
87 |
||
88 |
How split mp3/ogg files? |
|
89 |
======================== |
|
90 |
||
91 |
Split mp3 and ogg files:: |
|
92 |
||
93 |
$ mp3splt |
|
94 |
||
95 |
See:: |
|
96 |
||
97 |
http://mp3splt.sourceforge.net/mp3splt_page/home.php |
|
98 |
home page |