Advertisement
Guest User

PKGBUILD: festival-hts-voices-patched

a guest
Sep 19th, 2013
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.31 KB | None | 0 0
  1. # Contributor: tardo <tardo@nagi-fanboi.net>
  2. # Contributor: Xyne
  3. # Maintainer: Ray Kohler <ataraxia937@gmail.com>
  4. # Category: multimedia
  5.  
  6. pkgname=festival-hts-voices-patched
  7. provides=('festival-hts-voices')
  8. conflicts=('festival-hts-voices')
  9. pkgver=2.1
  10. pkgrel=1
  11. pkgdesc="Festival voices based on the HMM-Based Speech Synthesis System (HTS). With compatibility patches to work with Festival 2.1."
  12. url="http://hts.sp.nitech.ac.jp/"
  13. depends=('festival-patched-hts' 'sox')
  14. arch=('i686' 'x86_64')
  15. license=('custom')
  16. install=festival-hts-voices-patched.install
  17. source=(
  18.   "http://hts.sp.nitech.ac.jp/archives/${pkgver}/festvox_nitech_us_awb_arctic_hts-${pkgver}.tar.bz2"
  19.   "http://hts.sp.nitech.ac.jp/archives/${pkgver}/festvox_nitech_us_bdl_arctic_hts-${pkgver}.tar.bz2"
  20.   "http://hts.sp.nitech.ac.jp/archives/${pkgver}/festvox_nitech_us_clb_arctic_hts-${pkgver}.tar.bz2"
  21.   "http://hts.sp.nitech.ac.jp/archives/${pkgver}/festvox_nitech_us_jmk_arctic_hts-${pkgver}.tar.bz2"
  22.   "http://hts.sp.nitech.ac.jp/archives/${pkgver}/festvox_nitech_us_rms_arctic_hts-${pkgver}.tar.bz2"
  23.   "http://hts.sp.nitech.ac.jp/archives/${pkgver}/festvox_nitech_us_slt_arctic_hts-${pkgver}.tar.bz2"
  24. )
  25. sha256sums=('7aea67674661d29ee8686b45af38f4f090204e101abaead04aa731bdb7635569'
  26.             '5133aebf7a620e577f01a5e7669c7da95fb527071902eb8364d0b40f0be47835'
  27.             '4cf35b17d2db5b92498a0a371ed61330ce57d57b97f40803653fee8a77e2b338'
  28.             'e86e57c8a8361693671343473f68790160a3b69ccc7b906eb2cd1f5855d35ce3'
  29.             '845ae4ff9d7afed0b8270ab71d0709136f4a648ba67b66caecdb71d9bf1e993c'
  30.             '0aff67531eb9575f3204ad516a1fa81fe2356873e3567d0ee3dba94565eea47d')
  31.  
  32. prepare() {
  33.   cd "$srcdir/lib/voices/us"
  34.  
  35.   for voice in awb bdl clb jmk rms slt
  36.   do
  37.     voicefile="$srcdir/lib/voices/us/nitech_us_${voice}_arctic_hts/festvox/nitech_us_${voice}_arctic_hts.scm"
  38.     sed "s@(require 'hts)@(require 'hts21compat)@g" ${voicefile} -i
  39.     sed "s@(Parameter.set 'Synth_Method 'HTS)@(Parameter.set 'Synth_Method 'HTS21)@g" ${voicefile} -i
  40.   done
  41. }
  42.  
  43. package() {
  44.   cd "$srcdir/lib/voices/us"
  45.  
  46.   mkdir -p "$pkgdir/usr/share/festival/voices/english"
  47.   cp -Rt "$pkgdir/usr/share/festival/voices/english" *
  48.   install -D -m644 \
  49.     "$srcdir/lib/voices/us/nitech_us_awb_arctic_hts/hts/COPYING" \
  50.     "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement