Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-20-2007, 10:48 PM   #1
Glen Charles Rowell
Senior Member
 
Glen Charles Rowell's Avatar
 
Join Date: Nov 2005
Posts: 623
Wink Voice Synthesizer: Set playing sound's start point and duration to its length

How do I set playing sound's start point using an interval and also set the duration of play time to the sounds length? Then keep this happening for multiple sound that play one after the other?

I want to make a voice synthesizer and reduce the distance of gaps between sounds. "G"+"l"+"e"+"n" to "Glen" ect.

By the way, I'm making this from scratch and just want to understand how to do it. I don't actually need a working piece of software. I might make a mixing program later but wanna learn how to do all this stuff first.

Glen Charles Rowell
__________________
  • http://www.agreatdream.com and http://a4jp.com Glen Charles Rowell - Sapporo: English lessons and design. The website is in Japanese or English.
  • Your life is like coffee. If it's in a pretty cup it still tastes the same. The cup is your job, money... Enjoy your coffee.
  • Arguing is like trying to throw a hot coal you catch back at someone. You both get burnt.
Glen Charles Rowell is offline   Reply With Quote
Old 02-21-2007, 01:39 PM   #2
Glen Charles Rowell
Senior Member
 
Glen Charles Rowell's Avatar
 
Join Date: Nov 2005
Posts: 623
Default

Wow. I didn't think it was that difficult. Please help me. I've got this but can't figure out how to get an intival to work properly.

Code:
mySound = new Sound();
	mySound.attachSound(myArray2[_global.currentSound]);
	trace(myArray2[_global.currentSound]);
	mySound.start();
	//
	trace(mySound.duration);
	_global.currentSound2 = mySound.duration-1;
	trace(_global.currentSound2);
	_global.currentSound++;
	if (myArray2.length == _global.currentSound) {
		clearInterval(speechInterval);
		trace("cleared interval");
		_global.currentSound = "0";
		stop();
	} else {
		speechInterval = setInterval(Starter, _global.currentSound2);
		trace("interval is runninggggggggggg");
	}
__________________
  • http://www.agreatdream.com and http://a4jp.com Glen Charles Rowell - Sapporo: English lessons and design. The website is in Japanese or English.
  • Your life is like coffee. If it's in a pretty cup it still tastes the same. The cup is your job, money... Enjoy your coffee.
  • Arguing is like trying to throw a hot coal you catch back at someone. You both get burnt.
Glen Charles Rowell is offline   Reply With Quote
Old 02-21-2007, 11:01 PM   #3
Glen Charles Rowell
Senior Member
 
Glen Charles Rowell's Avatar
 
Join Date: Nov 2005
Posts: 623
Angry mmmmmmmmmmmmm

3 days and I still can't work it out. Flash!!! Arhhhhhhh
__________________
  • http://www.agreatdream.com and http://a4jp.com Glen Charles Rowell - Sapporo: English lessons and design. The website is in Japanese or English.
  • Your life is like coffee. If it's in a pretty cup it still tastes the same. The cup is your job, money... Enjoy your coffee.
  • Arguing is like trying to throw a hot coal you catch back at someone. You both get burnt.
Glen Charles Rowell is offline   Reply With Quote
Old 02-22-2007, 10:22 AM   #4
Glen Charles Rowell
Senior Member
 
Glen Charles Rowell's Avatar
 
Join Date: Nov 2005
Posts: 623
Default

Can someone show me how to get an instance to play a sound clear itself and play the next sound please?
__________________
  • http://www.agreatdream.com and http://a4jp.com Glen Charles Rowell - Sapporo: English lessons and design. The website is in Japanese or English.
  • Your life is like coffee. If it's in a pretty cup it still tastes the same. The cup is your job, money... Enjoy your coffee.
  • Arguing is like trying to throw a hot coal you catch back at someone. You both get burnt.
Glen Charles Rowell is offline   Reply With Quote
Old 02-22-2007, 10:38 PM   #5
Glen Charles Rowell
Senior Member
 
Glen Charles Rowell's Avatar
 
Join Date: Nov 2005
Posts: 623
Default

or give me some advice on multiple overlapping sounds?
__________________
  • http://www.agreatdream.com and http://a4jp.com Glen Charles Rowell - Sapporo: English lessons and design. The website is in Japanese or English.
  • Your life is like coffee. If it's in a pretty cup it still tastes the same. The cup is your job, money... Enjoy your coffee.
  • Arguing is like trying to throw a hot coal you catch back at someone. You both get burnt.
Glen Charles Rowell is offline   Reply With Quote
Old 02-23-2007, 12:32 AM   #6
pan69
Fight ya for a pint!
 
pan69's Avatar
 
Join Date: Jan 2005
Location: Sydney / Australia
Posts: 1,706
Default

Maybe this helps:
http://www.actionscript.org/resource...ing/Page1.html

http://www.lukeschreur.com

Last edited by pan69; 11-05-2012 at 09:00 AM.
pan69 is offline   Reply With Quote
Old 02-23-2007, 03:48 AM   #7
peptobismol
Senior Member
 
Join Date: Oct 2005
Posts: 746
Default

I don't think you can play with duration of a sound.. That involves synthesizing.. And flash can't do that. You can play with a duration of a pause. though.

It can only play straight sound.
try making a really big array like mySoundArray = new Array(1000);
And create a tempo is a setInterval... the tempo will go through each index of the array every say 1/10 of a second...
if an index == 0 then don't play anything...
if an index == a sound then play that sound.

here's an example
http://2noodles.com/testtube/hira.html
peptobismol is offline   Reply With Quote
Old 02-23-2007, 08:54 AM   #8
neilmmm
Senior Member
 
neilmmm's Avatar
 
Join Date: Oct 2005
Location: dorset
Posts: 1,637
Default

try this tutorial
HTML Code:
http://flashhacks.freeweb.hu/flashhks-chp-7-sect-2.html
neilmmm is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:09 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.