[gcompris/voices] add a script to create an aac encoded voice set
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris/voices] add a script to create an aac encoded voice set
- Date: Tue, 3 Mar 2015 00:52:28 +0000 (UTC)
commit 4a6e85c99c0d2ca9333dd1f3906cd86a2893ea29
Author: Bruno Coudoin <bruno coudoin gcompris net>
Date: Tue Mar 3 01:51:34 2015 +0100
add a script to create an aac encoded voice set
encodeToAAC.sh | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/encodeToAAC.sh b/encodeToAAC.sh
new file mode 100755
index 0000000..5ed103c
--- /dev/null
+++ b/encodeToAAC.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# First create a new directory
+# rsync -a voices.ogg/ voices.aac
+# cd voices.aac
+# ./encodeToAAC.sh
+
+echo "Transcode ogg files"
+for f in $(find . -type f -name \*.ogg)
+do
+ echo "Processing $f"
+ avconv -v warning -i $f -acodec libvo_aacenc ${f%.*}.aac
+ rm -f $f
+done
+
+echo "Fix symlinks"
+for f in $(find . -type l -name \*.ogg)
+do
+ echo "Processing $f"
+ target=$(readlink -f $f)
+ rm $f
+ ln -s -r ${target%.*}.aac ${f%.*}.aac
+done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]