Группа :: Доступность
Пакет: emacs-rbook
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: rbook-1.3-alt-mp3.diff
Скачать
Скачать
diff -ur rbook-1.3.orig/mp3 rbook-1.3/mp3
--- rbook-1.3.orig/mp3 2008-07-16 02:51:05 +0700
+++ rbook-1.3/mp3 2008-07-16 02:51:38 +0700
@@ -11,8 +11,8 @@
# Output file name must be determined in the command line.
# Default parameters:
-FREQUENCY=10.3
-BITRATE=32
+FREQUENCY=10000
+BITRATE=64
VOLUME=1.0
# Command line parsing:
@@ -33,10 +33,4 @@
shift
done
-exec 2>&1 >/dev/null
-
-# Use VBR
-# eval exec lame -S -r -s $FREQUENCY --bitwidth 8 -m m --scale $VOLUME --vbr-new -V 0 --abr $BITRATE - $file
-
-# For hardware players
-eval exec lame -S -r -s $FREQUENCY --bitwidth 8 -m m --scale $VOLUME -b $BITRATE -F -q 0 - $file
+sox -t raw -r $FREQUENCY -b -s -c 1 - -t wav -r 16000 -b -s -c 1 - 2> /dev/null | lame -b $BITRATE --scale $VOLUME -F -q 0 - $file > /dev/null 2> /dev/null
diff -ur rbook-1.3.orig/rbook.el rbook-1.3/rbook.el
--- rbook-1.3.orig/rbook.el 2008-07-16 02:51:05 +0700
+++ rbook-1.3/rbook.el 2008-07-16 02:53:53 +0700
@@ -465,8 +465,7 @@
(start-process "rbook-encoding" nil
rbook-mp3-program
"-b" (number-to-string rbook-mp3-bitrate)
- "-f" (number-to-string
- (/ rbook-speech-sampling 1000.0))
+ "-f" (number-to-string rbook-speech-sampling)
"-v" (number-to-string rbook-mp3-volume)
file)))
(set-process-coding-system rbook-encoding-process 'raw-text 'raw-text)