Fixed: NameError: name 'locale_encoding' is not defined
File /bin/rst2html.py, line 17, in <module>
from docutils.core import publish_cmdline, default_description
File /usr/lib/python2.7/site-packages/docutils/core.py, line 20, in <module>
from docutils import frontend, io, utils, readers, writers
File /usr/lib/python2.7/site-packages/docutils/frontend.py, line 41, in <module>
import docutils.utils
File /usr/lib/python2.7/site-packages/docutils/utils/__init__.py, line 20, in <module>
import docutils.io
File /usr/lib/python2.7/site-packages/docutils/io.py, line 18, in <module>
from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput
File /usr/lib/python2.7/site-packages/docutils/utils/error_reporting.py, line 60, in <module>
codecs.lookup(locale_encoding or '') # None -> ''
NameError: name 'locale_encoding' is not defined
.. -*- coding: utf-8; -*-
========
Audio.
========
.. contents::
:local:
Sound in Debian.
================
* http://wiki.debian.org/ALSA
* http://wiki.debian.org/SoundFAQ
Test speaker and microphone.
============================
To configure audio devices::
$ alsamixer
$ pavucontrol
To hier voice from mic in speaker::
$ arecord | aplay
$ arecord -f cd | aplay -f cd
To list of available devices::
$ aplay -l
$ aplay -L
$ arecord -l
$ arecord -L
$ pactl list
Play simple sounds.
===================
::
$ sudo apt-get install sox
$ play -n synth sin 440 vol -40dB
$ play -n synth 10 square 100-10000 synth sin fmod 100 vol -40dB
Record from microphone
======================
::
$ arecord out.wav
$ arecord -f cd -t raw | oggenc -r -o out.ogg -
$ arecord -f cd -t raw | lame -r - out.mp3
$ sox -t alsa default out.wav
$ audacity &
Check HDA params.
=================
::
$ sudo apt-get install alsa-tools-gui
$ hdajackretask
See also:
http://www.alsa-project.org/main/index.php/HDA_Analyzer
provides a graphical interface to access the raw HD-audio control
Suitable convertors?
====================
::
$ sudo apt-get install ffmpeg
or::
$ sudo apt-get install sox
List of sox supported format: See sox(1).
List of ffmpeg supported format::
$ ffmpeg -formats
How convert amr to ogg/mp3?
===========================
TODO
Converting music formats
========================
::
$ sox in.mp3 out.ogg
$ sox in.ogg out.wav
... etc
How convert flac to mp3?
========================
::
$ flac -c -d $file.flac | lame -m j -q 0 -V 0 -s 44.1 - $file.mp3
How convert wma to mp3?
=======================
::
$ mplayer -vo null -vc dummy -af resample=44100 -ao pcm:file=$file.wav $file.wma
$ lame -m s $file.wav -o "$file.mp3
$ rm $file.wav
How convert m4a to mp3?
=======================
::
$ faad -o - $file.m4a | lame -V 0 - $file.mp3
How split mp3/ogg files?
========================
Split mp3 and ogg files::
$ mp3splt
See::
http://mp3splt.sourceforge.net/mp3splt_page/home.php
home page