Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: voicebox working with several formats

Re: voicebox working with several formats

From: pondlife <pondlife_at_ntlworld.com>
Date: Tue, 11 Sep 2007 09:10:09 +0100

Ah, do you mean the script that builds .talk clips (not .voice files)?

You can change the extensions that will be voiced by editing the file
voiceUtils.vbs. Look for "function isVoiced" near the end, and edit the
list of extensions which are being tested for.

In case this is tricky for you, I've added ogg and wma and attached the
updated script here.

-- 
pondlife
begin 666 voiceUtils.vbs
M#0HG+2TM#0HG(%-E="!U<"!305!)(&9O<B!C;&EP(&=E;F5R871I;VX-"B<M
M+2T-"@T*4'5B;&EC(%-U8B!6;VEC94EN:70H*0T*#0HG+2TM( T*#0H_at_4V5T
M(%-H96QL(#T_at_0W)E871E3V)J96-T*")74V-R:7!T+E-H96QL(BD-"B!3970@
M1E-/(" @/2!#<F5A=&5/8FIE8W0H(E-C<FEP=&EN9RY&:6QE4WES=&5M3V)J
M96-T(BD-"B!D42 @(" @(" @/2!#:'(H,S0I(" @("<@9&]U8FQE('%U;W1E
M("T@<')E9F5R86)L92!T;R!W<FET:6YG("(B(B(@=&\@9V5T("(-"B!S4" @
M(" @(" @/2!#:'(H,S(I(" @("<@<W!A8V4_at_8VAA<F%C=&5R#0H_at_4V-R:7!T
M1&ER(#T_at_1E-/+D=E=$9I;&4H5W-C<FEP="Y38W)I<'1&=6QL3F%M92DN4&%R
M96YT1F]L9&5R#0H-"B!3970_at_3&]G7V9I;&4@/2!&4T\N0W)E871E5&5X=$9I
M;&4H4V-R:7!T1&ER)B)<5F]I8V5";WA?;&]G9FEL92YT>'0B*0T*#0HG+2TM
M( T*#0H_at_3VX@17)R;W(@4F5S=6UE($YE>'0@)R!S:VEP('1O(&YE>'0@;&EN
M92!O;B!E<G)O<@T*#0H_at_4V5T('-P:W(@/2!74T-R:7!T+D-R96%T94]B:F5C
M="@B4T%022Y3<%9O:6-E(BD-"@T*($EF($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(BPM,2PQ*0T*(" @
M("!#;&EP4W!E86L@/2!2:6=H="A)=&5M+$QE;BA)=&5M*2U,87-T4VQA<V_at_I
M#0H@(" @(%=A=D9I;&4@(#T_at_271E;28B7%]D:7)N86UE+G=A=B(-"B @(" @
M5&%L:T9I;&4@/2!)=&5M)B)<7V1I<FYA;64N=&%L:R(-"@T*(" @("!,;V=?
M9FEL92Y7<FET94QI;F4H(D9O;&1E<CH@(B9)=&5M)B(@=F]I8V5D(BD-"@T*
M(" @("!#86QL(%1E>'14;TU0,RA#;&EP4W!E86LL5V%V1FEL92Q486QK1FEL
M92D-"@T*(" @16QS90T*#0H@(" @($QO9U]F:6QE+E=R:71E3&EN92_at_B1F]L
M9&5R.B B)DET96TF(B!N;W0@=F]I8V5D(BD-"@T*(" @16YD($EF#0H-"B @
M($EF("A4:&ES1F]L9&5R+D9I;&5S+D-O=6YT(#P^(# I(%1H96X-"@T*(" @
M("!&;W(@16%C:"!&:6QE($EN(%1H:7-&;VQD97(N1FEL97,-"@T*(" @(" @
M($EF("A6;VEC949I;&5S*2!4:&5N#0H-"B @(" @(" @($-L:7!3<&5A:R ]
M($9I;&4N3F%M90T*#0H@(" @(" @("!)9B H:7-6;VEC960H1FEL92Y.86UE
M*2D_at_5&AE;@T*#0H@(" @(" @(" @(%=A=D9I;&4@(#T_at_271E;28B7"(F0VQI
M<%-P96%K)B(N=V%V(@T*(" @(" @(" @("!486QK1FEL92 ]($ET96TF(EPB
M)D-L:7!3<&5A:R8B+G1A;&LB#0H-"B @(" @(" @(" @3&]G7V9I;&4N5W)I
M=&5,:6YE*")&:6QE.B B)DET96TF(EPB)D-L:7!3<&5A:R8B('9O:6-E9"(I
M#0H-"B @(" @(" @(" @0V%L;"!497AT5&]-4#,H0VQI<%-P96%K+%=A=D9I
M;&4L5&%L:T9I;&4I#0H-"B @(" @(" @($5L<V4-"@T*(" @(" @(" @("!,
M;V=?9FEL92Y7<FET94QI;F4H(D9I;&4Z("(F271E;28B7"(F0VQI<%-P96%K
M)B(@;F]T('9O:6-E9"(I#0H-"B @(" @(" @($5N9"!)9_at_T*#0H@(" @(" @
M16YD($EF#0H-"B @(" @3F5X= T*#0H@("!%;F0_at_268-"@T*)RTM+2!0<F]C
M97-S('-U8F9O;&1E<G,-"@T*(" @268@*%1H:7-&;VQD97(N4W5B1F]L9&5R
M<RY#;W5N=" \/B P*2!4:&5N#0H-"B @(" @1F]R($5A8V@@1F]L9&5R($EN
M(%1H:7-&;VQD97(N4W5B1F]L9&5R<PT*#0H@(" @(" @0V%L;"!6;VEC94-H
M96-K*$9O;&1E<BD-"@T*(" @("!.97AT#0H-"B @($5N9"!)9_at_T*#0H@("!3
M970_at_5&AI<T9O;&1E<B ]($YO=&AI;F<-"@T*($5L<V5)9B H1E-/+D9I;&5%
M>&ES=',H271E;2DI(%1H96X-"@T*(" @268@*%9O:6-E1FEL97,I(%1H96X-
M"@T*(" @("!)9B H:7-6;VEC960H271E;2DI(%1H96X-"@T*(" @(" @($QA
M<W13;&%S:" ]($EN4W1R4F5V*$ET96TL(EPB+"TQ+#$I#0H@(" @(" @0VQI
M<%-P96%K(#T_at_4FEG:'0H271E;2Q,96XH271E;2DM3&%S=%-L87-H*0T*(" @
M(" @(%=A=D9I;&4@(#T_at_271E;28B+G=A=B(-"B @(" @("!486QK1FEL92 ]
M($ET96TF(BYT86QK(@T*#0H@(" @(" @3&]G7V9I;&4N5W)I=&5,:6YE*")&
M:6QE.B B)DET96TF(B!V;VEC960B*0T*#0H@(" @(" @0V%L;"!497AT5&]-
M4#,H0VQI<%-P96%K+%=A=D9I;&4L5&%L:T9I;&4I#0H-"B @(" @16QS90T*
M#0H@(" @(" @3&]G7V9I;&4N5W)I=&5,:6YE*")6;VEC:6YG($9I;&4Z("(F
M271E;28B(&YO="!V;VEC960B*0T*#0H@(" @($5N9"!)9_at_T*#0H@("!%;F0@
M268-"@T*($5L<V4-"@T*(" @3&]G7V9I;&4N5W)I=&5,:6YE*")!<F=U;65N
M=#H@(B9)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&L@;W(@*&YO="!&4T\N1FEL945X:7-T
M<RA-4#-&:6QE*2DI(%1H96X-"@T*(" @268@*$]V97)W<FET95]D;W17878@
M;W(@;F]T($933RY&:6QE17AI<W1S*%=A=F5&:6QE*2D_at_5&AE;@T*#0HG+2TM
M(%-P96%K('1E>'0_at_9&ER96-T;'D@=&\@=&AE("YW878_at_9FEL90T*#0H@(" @
M($QO9U]F:6QE+E=R:71E3&EN92_at_B+2T^4W!E86MI;F<@(B9497AT*0T*#0H@
M(" @(%-P1E,N3W!E;B!7879E1FEL92P_at_4U-&34-R96%T949O<E=R:71E+"!&
M86QS90T*(" @("!3970@<W!K<BY!=61I;T]U='!U=%-T<F5A;2 ](%-P1E,-
M"B @(" @<W!K<BY3<&5A:RA497AT*0T*(" @("!3<$93+D-L;W-E#0H-"B @
M($5N9"!)9_at_T*#0HG+2TM(%-E;F0_at_8V]M;6%N9"!L:6YE('1O('=A=F4_at_96YC
M;V1I;F<@87!P;&EC871I;VXN#0HG+2TM(%%U;W1E(&5N8V]D97(@<&%T:"P@
M:G5S="!T;R!B92!S869E+B H<W!A8V5S(&EN(&%B<V]L=71E('!A=&AN86UE
M/RD-"@T*(" @268@*$933RY&:6QE17AI<W1S*%=A=F5&:6QE*2D_at_5&AE;@T*
M#0H@(" @(&-M9%)U;B ](&11)F5N8V]D94%P<"9D429S4"9,86UE3W!T<R9S
M4"9D4297879E1FEL929D429S4"9D429-<#-&:6QE)F11#0H@(" @($QO9U]F
M:6QE+E=R:71E3&EN92_at_B(" M+3Y%;F-O9&EN9R B)E=A=F5&:6QE*0T*(" @
M("!,;V=?9FEL92Y7<FET94QI;F4H(B @+2T^4W1O<FEN9R @(B9-4#-&:6QE
M*0T*(" @("!,;V=?9FEL92Y7<FET94QI;F4_at_8VUD4G5N#0H-"B @(" @<F5T
M=F%L(#T_at_4VAE;&PN4G5N*&-M9%)U;BPP+'1R=64I#0H-"B @($5N9"!)9_at_T*
M#0H_at_16QS90T*#0H@(" @($QO9U]F:6QE+E=R:71E3&EN92_at_B(" M+3Y!;')E
M861Y(&5X:7-T<R B)DU0,T9I;&4I#0H-"B!%;F0_at_268-"@T*)RTM+2 @1&5L
M971E('1H92!W879E(&9I;&4_at_869T97(@96YC;V1I;F<@:68_at_4F5M;W9E5V%V
M(&ES('-E="!T;R!T<G5E#0H-"B!)9B H4F5M;W9E5V%V(&%N9"!&4T\N1FEL
M945X:7-T<RA7879E1FEL92DI(%1H96X-"@T*(" @8VUD4G5N(#T@(B @+2T^
M1&5L971I;F<@9FEL92 B)E=A=F5&:6QE#0H@("!,;V=?9FEL92Y7<FET94QI
M;F4_at_8VUD4G5N#0H-"B @($933RY$96QE=&5&:6QE*%=A=F5&:6QE*0T*#0H@
316YD($EF#0H-"D5N9"!3=6(-"@``
`
end
Received on 2007-09-11

Page was last modified "Jan 10 2012" The Rockbox Crew
aaa