It is currently Mon Oct 20, 2014 5:46 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Tue Oct 14, 2008 1:25 am 
Offline
 Profile

Joined: Tue Oct 14, 2008 12:43 am
Posts: 18
Is it possible to call the superior speech from basic with a variable ?

Once the disk image is inserted, this prog will work

10 *RUN "SPEECH"
20 *SAY "HELLO"

But this one doesn't

10 *RUN "SPEECH"
20 A$ = "HELLO"
30 *SAY A$


Superior software speech
http://www.strafom.force9.co.uk/bbc/Ret ... peechr.zip


Top
 
PostPosted: Tue Oct 14, 2008 6:43 am 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
You need to write:

10 *RUN SPEECH
20 A$="HELLO"
30 OSCLI "*SAY "+A$

:)


Top
 
PostPosted: Tue Oct 14, 2008 5:56 pm 
Offline
 Profile

Joined: Tue Oct 14, 2008 12:43 am
Posts: 18
Cheers - my final version of this 4 liner:

10 *RUN SPEECH
20 INPUT "SAY: " A$
30 OSCLI "*SAY"+A$
40 GOTO 20

Wrapping Beebem into a vst, feeding the text in and getting the audio back out is probably a little too much effort for now :)


Top
 
PostPosted: Wed Oct 15, 2008 11:46 am 
Offline
User avatar
 Profile

Joined: Fri Jul 25, 2008 2:47 pm
Posts: 190
In Line 30 you can leave out the * and make sure you have a space after SAY inside the quotes

i.e. OSCLI "SAY "+A$


Top
 
PostPosted: Wed Oct 15, 2008 12:35 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
Heh, actually you can't - because Speech's custom OSCLI handler compares against the whole string including the '*' (which it shouldn't - naughty Speech!)


Top
 
PostPosted: Wed Oct 15, 2008 1:42 pm 
Offline
User avatar
 Profile

Joined: Fri Jul 25, 2008 2:47 pm
Posts: 190
RichTW wrote:
Heh, actually you can't - because Speech's custom OSCLI handler compares against the whole string including the '*' (which it shouldn't - naughty Speech!)

You're quite right - now you mention it I remember that little quirk


Top
 
PostPosted: Wed Oct 15, 2008 11:41 pm 
Offline
 Profile

Joined: Tue Oct 14, 2008 12:43 am
Posts: 18
I noticed running the emu at different speeds can change the pitch - I wonder if superior speech uses a timer interrupt for this, is there a likely thing I could try changing - and some code to change the timing, to see it will change the pitch?


Top
 
PostPosted: Thu Oct 16, 2008 6:40 am 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
There's actually a command I think: *PITCH - follow it with a letter from A-Z to change the pitch.


Top
 
PostPosted: Thu Oct 16, 2008 10:41 am 
Offline
 Profile

Joined: Tue Oct 14, 2008 12:43 am
Posts: 18
Oh nice, I suppose the *PITCH A is running the fastest it could possibly go?

I'm still interested to see if it could be persuaded to go higher as it's quite a low pitch


Top
 
PostPosted: Thu Oct 16, 2008 12:14 pm 
Offline
User avatar
 WWW  Profile

Joined: Wed Jan 09, 2008 10:23 am
Posts: 359
Location: Glasgow, Scotland
There was also the *SPEAK command which was more versatile than *SAY, although trickier to use. You may be able to use that to get it going at a higher pitch.

From memory (it's been over a decade since I've used Speech!) I used to be able to make it sound like a mouse on helium without resorting to using *SPEAK.

Kind regards,

Francis.


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron