It is currently Sat Dec 15, 2018 11:26 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject:
PostPosted: Sat Nov 17, 2007 10:07 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 11012
Location: Rio de Janeiro - Brazil
In this post, tepples wrote:
Eventually, I said screw it, I'm just writing my own ADPCM playback engine.

That would rock! Any progress? :D


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 17, 2007 10:29 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 20877
Location: NE Indiana, USA (NTSC)
It depends on motivation. The bitrate would be the same as for DPCM (about 32 kbit/s), just possibly better quality. If 3/4 of a 512 KB ROM were to be used, that would be about 1.5 minutes of audio. What kind of game would benefit from that much recorded speech?

Splitting


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 17, 2007 10:45 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 11012
Location: Rio de Janeiro - Brazil
tepples wrote:
What kind of game would benefit from that much recorded speech?

Yeah, I didn't expect it to be smaller than DPCM. Hum... I can't think of anything very amusing with that little speech, but maybe we should look into speech synthesizing... I've seen programs reproducing speech from just a few different audio clips (I really don't know how that works, but that's why I said "look into it"). Maybe it would be possible to have a bunch of small clips that when correctly combined would produce intelligible sentences. Sure, it'd sound a bit robotic, but it would be your NES talking with a robotic voice, which fits! Maybe some sort of artificial intelligence program? Sure sounds like novelty to me.

EDIT: Seems like we could make the NES speak spanish: http://en.wikipedia.org/wiki/Diphone


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 17, 2007 10:59 pm 
Offline
Site Admin
User avatar

Joined: Mon Sep 20, 2004 6:04 am
Posts: 3601
Location: Indianapolis
tokumaru wrote:
I've seen programs reproducing speech from just a few different audio clips (I really don't know how that works, but that's why I said "look into it"). Maybe it would be possible to have a bunch of small clips that when correctly combined would produce intelligible sentences.


I made a speech synth that works like that, I don't think I'd released it but you can hear it on the last track of my Chipography NSF. Using DPCM (and not at the highest sample rate, I think it was $C, IIRC), the samples barely fit in 16kB and I had to trim a little bit off of them.

So the quality would benefit quite a bit with ADPCM, but it could be a bit more cumbersome. My speech synth is entirely IRQ-driven, so you can do anything you want while it's talking.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 3:22 am 
Online
User avatar

Joined: Fri Nov 12, 2004 2:49 pm
Posts: 7604
Location: Chexbres, VD, Switzerland
I guess the simler language to synthethise would be japanese since they have 100 diaphones or so. French and English would be almost impossible to do, tough.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 4:18 am 
Offline
User avatar

Joined: Fri Jun 29, 2007 10:25 pm
Posts: 324
Location: Earth, Milkyway Galaxy, The Universe, M-Theory
Memblers wrote:
tokumaru wrote:
I've seen programs reproducing speech from just a few different audio clips (I really don't know how that works, but that's why I said "look into it"). Maybe it would be possible to have a bunch of small clips that when correctly combined would produce intelligible sentences.


I made a speech synth that works like that, I don't think I'd released it but you can hear it on the last track of my Chipography NSF. Using DPCM (and not at the highest sample rate, I think it was $C, IIRC), the samples barely fit in 16kB and I had to trim a little bit off of them.

So the quality would benefit quite a bit with ADPCM, but it could be a bit more cumbersome. My speech synth is entirely IRQ-driven, so you can do anything you want while it's talking.


Would you say an NES speech synth could be produced w/ a more analogue approach to it w/ a square or triangle, like Berzerk? Maybe when I get around w/ messing w/ the sound registers I'll try that...

_________________
Code:
          *=$0000
loop      JMP loop
          .eof


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 11:17 am 
Offline

Joined: Thu Jun 29, 2006 7:44 pm
Posts: 524
Location: lolz!
This is something I've actually been waiting for.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 11:27 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 20877
Location: NE Indiana, USA (NTSC)
NotTheCommonDose wrote:
This is something I've actually been waiting for.

The codec, or a speech synthesizer using the codec?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 12:27 pm 
Offline
User avatar

Joined: Sun Jun 05, 2005 2:04 pm
Posts: 2150
Location: Minneapolis, Minnesota, United States
The NES could speak akward japanese if you had sound samples of the following letters being pronounced:

a, i, u, e, o, k, g, s, sh, z, t, ch, ts, n, h, p, b, f, m, r, y

If you could have a sample that was about .06 seconds long of each of these, you could string them together to make japanese words.

You could maybe even skip the "y" sound, and just use "i", because "ya" sounds pretty much the same as "ia".


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 12:42 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 20877
Location: NE Indiana, USA (NTSC)
Celius wrote:
The NES could speak akward japanese if you had sound samples of the following letters being pronounced:

a, i, u, e, o, k, g, s, sh, z, t, ch, ts, n, h, p, b, f, m, r, y

If you could have a sample that was about .06 seconds long of each of these, you could string them together to make japanese words.

It would sound like the "animalese" from Animal Crossing.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 1:02 pm 
Offline
User avatar

Joined: Sun Jun 05, 2005 2:04 pm
Posts: 2150
Location: Minneapolis, Minnesota, United States
Haha, yeah it would. But the animalese is just really fast. Maybe .06 seconds is too fast, but I've worked with a cartoon where every frame is shown for .07 seconds at minimum. The mouth movements were really hard to get right because that just was too slow in some places. However, these sounds are .06 seconds, and two of them make a syllable. So most syllables are .12 seconds long at minimum. This may be a moderate speed for japanese, but it might be too slow. I'm sure it would be hard to make it sound natural. Every sample would have to be pretty monotonous to make it not sound like animalese.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 1:07 pm 
Offline

Joined: Thu Jun 29, 2006 7:44 pm
Posts: 524
Location: lolz!
The codec.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 1:08 pm 
Online
User avatar

Joined: Fri Nov 12, 2004 2:49 pm
Posts: 7604
Location: Chexbres, VD, Switzerland
You would have to play some sample faster than other (such as having the end of a senstance play lower) to sound slightly more natural. (or higher if the senstance is a question).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 1:31 pm 
Offline

Joined: Thu Jun 29, 2006 7:44 pm
Posts: 524
Location: lolz!
but the program will do that right?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 1:39 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 20877
Location: NE Indiana, USA (NTSC)
It's difficult to make cycle-timed code that will smoothly change the pitch of a sample.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 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:  
Powered by phpBB® Forum Software © phpBB Group