Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-08-2006, 02:25 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
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.
Reply With Quote
  #2  
Old 08-09-2006, 03:54 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
I second that Graal should do this
__________________
Deep into the Darkness peering...
Reply With Quote
  #3  
Old 08-10-2006, 04:53 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
*cough* Bump *cough*
Reply With Quote
  #4  
Old 08-10-2006, 06:03 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
  • 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.
__________________
Skyld
Reply With Quote
  #5  
Old 08-10-2006, 10:39 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Red face

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.
__________________
Deep into the Darkness peering...
Reply With Quote
  #6  
Old 08-10-2006, 11:02 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
__________________
Skyld
Reply With Quote
  #7  
Old 08-11-2006, 03:01 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:23 AM.


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