Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Sound Recording. (https://forums.graalonline.com/forums/showthread.php?t=67938)

excaliber7388 08-08-2006 02:25 AM

Sound Recording.
 
Graal has supported audio input devices for a while, but whould be really neat, is if gscript incorporated it.
For example
PHP Code:

function onSoundIn()
{
  
client.sound_sample player.sound;


That way you could have scripts based on sound, or the ability to save sound files. It would also be neat to create sound/voice recognition systems. :megaeek:

Angel_Light 08-09-2006 03:54 AM

I second that Graal should do this

excaliber7388 08-10-2006 04:53 PM

*cough* Bump *cough*

Skyld 08-10-2006 06:03 PM

  • It would be used by scripters to invade privacy.
  • There is no real use for voice recognition inside Graal. Windows XP and Mac OS X already support it.
  • It means modifying the engine to support a way of storing the sound, because 'player.sound' would not work.
  • It's a waste of computer power continuously processing sound input.

Bottom line: It isn't practical.

Angel_Light 08-10-2006 10:39 PM

Quote:

Originally Posted by Skyld
  • It would be used by scripters to invade privacy.

Explain fully please.
Quote:

Originally Posted by Skyld
  • There is no real use for voice recognition inside Graal. Windows XP and Mac OS X already support it.

Show me how to use this on Graal then. :o
Quote:

Originally Posted by Skyld
  • It means modifying the engine to support a way of storing the sound, because 'player.sound' would not work.
  • It's a waste of computer power continuously processing sound input.

I disagree. Maybe something like this would work.
PHP Code:

function onCreated() {
this.soundnumber 0;
}
function 
onMicroPhoneOn() { // If the microphone key is pushed
if (this.filetype == "MP3") { // makes the save file .mp3
this.filetype = .mp3;
}
else if (
this.filetype == "WAV") { // makes the save file .wav
this.filetype = .wav;
}
else if (
this.filetype == "MID") { // make the save file .mid
this.filetype = .mid
}
if (
player.input == "true") {   // If sound is recieved
savesoundplayer.inputplayer.account "Sound" this.soundnumber this.filetype);  // sound , Name-of-file.ext
sleep(0.05);
this.soundnumber += 1;


You could have some key or whatever change the this.filetype or whatever.
Player(s) might have to pay more or just VIP are allowed to do this becuase, some people might save ridiculously large files or something of the such. Player(s) should not record anything that dont want to be listen by other people anyways. ^^ Thank-you.

Skyld 08-10-2006 11:02 PM

Quote:

Originally Posted by Angel_Light
Explain fully please.

Uh, it is just as I said. Unless there was a mechanism for ensuring that sound capture is only at the users discretion, then it would be possible for scripters to 'listen in' on people by uploading the captured sound to the server and distributing it.
Quote:

Originally Posted by Angel_Light
Show me how to use this on Graal then. :o

Go and enable it in your control panel or something. It is a part of the language bar in typical Windows XP setups.
Quote:

Originally Posted by Angel_Light
I disagree. Maybe something like this would work.
PHP Code:

function onCreated() {
this.soundnumber 0;
}
function 
onMicroPhoneOn() { // If the microphone key is pushed
if (this.filetype == "MP3") { // makes the save file .mp3
this.filetype = .mp3;
}
else if (
this.filetype == "WAV") { // makes the save file .wav
this.filetype = .wav;
}
else if (
this.filetype == "MID") { // make the save file .mid
this.filetype = .mid
}
if (
player.input == "true") {   // If sound is recieved
savesoundplayer.inputplayer.account "Sound" this.soundnumber this.filetype);  // sound , Name-of-file.ext
sleep(0.05);
this.soundnumber += 1;


You could have some key or whatever change the this.filetype or whatever.

Your scripting is terrifying. If it were to be done, some sort of object would probably be best.
Quote:

Originally Posted by Angel_Light
Player(s) might have to pay more or just VIP are allowed to do this becuase, some people might save ridiculously large files or something of the such. Player(s) should not record anything that dont want to be listen by other people anyways. ^^ Thank-you.

It is unnecessary traffic to transport sound back and forth anyway. Graal already supports peer-to-peer audio chat; I don't see any value in scripting being able to use it. It's not like you would be able to feasibly translate sound to text using gscript.

excaliber7388 08-11-2006 03:01 AM

True, you could have it record everything lol I didn't think of that.
Quote:

Go and enable it in your control panel or something. It is a part of the language bar in typical Windows XP setups.
In other words, it's "fun" to find :\

Must be nice ;)


All times are GMT +2. The time now is 02:34 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.