realbasic-nug
[Top] [All Lists]

declares

To: REALbasicNUGlist Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: declares
From: Carlo Rubini <osb at bttb dot net dot bd>
Date: Mon, 31 May 2004 15:38:35 +0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
Can anybody give me the RB declare equivalent of the following code that I got from http://developer.apple.com/documentation/Carbon/Reference/Speech_Synthesis_Manager/speech_synthesis/APIIndex.html ?

====
GetSpeechPitch
Determines a speech channel's current speech pitch.

OSErr GetSpeechPitch (
    SpeechChannel chan,
    Fixed * pitch
);

Parameter Descriptions
chan
The speech channel whose pitch you wish to determine.
pitch
On return, a pointer to the current pitch of the voice in the speech
channel, expressed as a fixed-point frequency value.
====

Since this is the first time I deal directly with declares, apart from the following line I dont know how to procede:

Declare function GetSpeechPitch Lib SpeakLib (chan as short, pitch as Ptr) as Integer

I assume that chan could refer to a popupmenu-listindex containing a list of voices (as in Joe's example), but anyway, even with such knowledge, as I said, I dont know how to procede.

any help (possibly with a short explanation) would be more than welcome. Thanks,

======
And since this topic is about Speech, somebody may be interested to know that the Speak function in RB accepts embedded rate/pitch/modulation/volume specifications; as in:

speak "[[rate 140]] [[pmod 58]] [[pbas 50]] [[volm 0.5]] Hello world!"

although it seems that it doesnt recognise cvox in order to change a voice. Cool, anyway.
--
Carlo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • declares, Carlo Rubini <=