Author Topic: LambdaSpeak Speech Synthesizer, Sample Player, RTC, MP3, Serial Interface, MIDI  (Read 32105 times)

0 Members and 1 Guest are viewing this topic.

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #50 on: 20:59, 14 June 17 »
Another caveat - it is NOT possible to make the Emic 2 speak synchronously.
The DEC parser mode is also buffered. Hence, there will be a short delay: I am buffering the allophones and speaking starts when the last allophone has been delivered a second ago or so, or when the buffer is full. That means that certain software, such as the screen reading "echo" of the SSA-1 software, which constantly sends bytes if you list a long basic program, will not work perfectly. There will be delays when the buffer is full, and an "incomplete" buffer might be spoken. But for short utterances such as in Roland in Space, there is no problem with the buffering approach.

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #51 on: 09:20, 15 June 17 »
 The thread

http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-ssa-1-speech-synthesizer-rom-needed/msg4641/#msg4641

is a great source of information, but given the problems figuring out the exact timings for Roland in Space title screen, I decided to dust-off my real SSA-1 and connect it to my recently acquired HP 1662A Logic Analyzer (I got that thing for 50$ !).

I am attaching the screenshots for the title screen speech "Amstrad produly presents..." - the first three bytes or so.
Lab 1 = ~LRQ
Lab 2 = SBY
Lab 3 = ~ALD

Similar to the measurements in the cited thread above.

That should give me some material to work with...
[attachimg=1][attachimg=2][attachimg=3][attachimg=4][attachimg=5][attachimg=6][attachimg=6][attachimg=7]
« Last Edit: 09:22, 15 June 17 by LambdaMikel »

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #52 on: 10:01, 15 June 17 »
[attachimg=1][attachimg=2][attachimg=4][attachimg=5][attachimg=6][attachimg=7][attachimg=8][attachimg=9][attachimg=3]

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #53 on: 09:08, 16 June 17 »
Seem I finally figured it out  :)

[youtube]https://youtu.be/GwAH3_dJs_I[/youtube]

Thanks to gerald in the other thread

http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-ssa-1-speech-synthesizer-rom-needed/120/

There is still some finetuning of the allophones possible - the Emic 2 allows to specify the lengths. I haven't done that yet. It uses Emic 2's default allophones. Some of the mappings were not so clear to me, but as you can see in the video, it is not much worse than the original SSA-1.

Also, the effect that the Emic 2 cannot really speak synchronously as the allophones arrive, but has to buffer them first, is visible in the video, if you look at the "talking head" in the SSA-1 software loader. The head speaks silently, and the speech comes later.

Next step is to make PCB version 2. This version will have (at least) 2 modes:

- the native Emic 2 mode, as shown previously
- the SSA-1 emulation, as shown in this video
- ( maybe also DK'tronics? ) But it seems that might not be so worthwhile, as not so many games seems to support DK'tronics speech synthesizer.

The DIP switch will be used to select some of these options.



Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #54 on: 18:38, 22 June 17 »
I tried to squeeze the board's height as much as possible, but even this new version will still block parts of the DD3 display  :( Must use a cable otherwise.

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #55 on: 18:19, 23 June 17 »
I now have the final PCB. That way the DD3 display is unobstructed. It is submitted to the PCB manufacturer... a small batch of 3. Let's see if it works  :)

Btw, the large empty area on the top right below the "Lambda Speak" logo is reserved for a little loudspeaker. The Emic 2 has a built-in amplifier.


* lambdaspeak1-board.jpg
(285.82 kB, 1600x900 - viewed 129 times)
« Last Edit: 18:22, 23 June 17 by LambdaMikel »

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #56 on: 08:44, 09 July 17 »
The PCBs are back... tomorrow I will put the iron to work - let's see if it works  :)
Stay tuned  :P

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.112
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3932
  • Likes Given: 410
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #57 on: 22:01, 09 July 17 »
Hey, great score on the HP 1662A! They're a bit big but a great device, especially for retro computers where you can really make use of the state analysis mode that modern LA's unfortunately don't have any more :(

Bryce.

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #58 on: 08:20, 10 July 17 »
Yeah, that thing is fun - and really useful for this project!

The PCB works - here is a new video:

[youtube]https://youtu.be/PJCfPbCQvmo[/youtube]

Will still need one more PCB revision though unfortunately: the space for the DDI-3 LCD display is still slightly too small.

And then, the software needs some more work:
- read DIP switches at startup to determine initial modes (choices: Emic 2 native, and SSA-1 emulation, as well as different voices for SSA-1)
- add some &FF control byte facility such that the modes can be changed, even from SSA-1 mode
- add reset handler


Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #59 on: 08:48, 10 July 17 »
... how about a round of "Alex Higgins World Pool" instead of "Roland in Space"  :P

[youtube]https://youtu.be/WbvsnRWKF0s[/youtube]

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #60 on: 19:49, 10 July 17 »
Bryce wrote:
Quote
Hey, great score on the HP 1662A! They're a bit big but a great device, especially for retro computers where you can really make use of the state analysis mode that modern LA's unfortunately don't have any more

I must say that this state analysis mode is still a bit of a mystery to me... so far I just used the timed mode. And even that was not easy to understand. The analyzer certainly requires far more time and study for proper use. I managed to find a PDF of the manual online, but boy, that thing is not easy to understand... it has tons of menus and configuration options. For 90% of them I have no idea what they do - I was lucky to figure out how to acquire the traces by playing around and using some intuition. If you can give some advice about logic state mode etc. that would be great, Bryce! 
« Last Edit: 19:50, 10 July 17 by LambdaMikel »

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.112
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3932
  • Likes Given: 410
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #61 on: 22:39, 10 July 17 »
State analysis is more or less just a mode where the LA uses the clock of the device you're testing instead of its own internal clock. So the LA is exactly in sync with the DUT. That way you can see exactly what level each pin was at on each clock cycle. Unfortunately modern LAs don't include thiis option any more :(

Bryce.

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #62 on: 06:19, 11 July 17 »
Thanks for the explanation, Bryce!

And here comes my next question  ;) I was asked again about MX4 compatibility - I don't have any MX4 equipment to test unfortunately, but chances are that LambdaSpeak already is compatible?! LambdaSpeak's IDC box header has the following layout:

Code: [Select]
--------------|_|---------------
| pin1                   pin49 |
| pin2                   pin50 |
--------------------------------

That means, pin 1 = sound, pin 2 = GND, pin 49 = GND, pin 50 = CLK of the CPC 464.

Will that work, or does it require changes?
« Last Edit: 06:52, 11 July 17 by LambdaMikel »

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.112
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3932
  • Likes Given: 410
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #63 on: 10:33, 11 July 17 »
It looks like you have the pins flipped? How are you connecting it to your CPC? The correct layout would be:

pin2                           pin50
pin1                           pin49

So you would have to mount the 90° header on the rear of the PCB to get it connected correctly?

Did you make the edge to IDC adapter PCB layout yourself? It looks like the problem started there.

Bryce.
« Last Edit: 10:37, 11 July 17 by Bryce »

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #64 on: 17:06, 11 July 17 »
I see. Yes, I used my CPC Expansion Breadboard adapter for this:
http://www.ebay.com/itm/Amstrad-Schneider-CPC-464-Expansion-Port-Breadboard-Connector-KIT-/192224312275?hash=item2cc1763bd3:g:ZqoAAOSwJ4hY-5Dq
(only difference is that the female IDC pin header connector is facing upwards for LambdaSpeak, whereas it is facing downwards on the Ebay auction image).
When I did the PCB design, this layout occurred "naturally", so to speak, so I am a bit surprised that the pins are flipped with regard to MX4.

Well, I can make another version with pins flipped.

Where can I buy a mother4x motherboard to test it?
« Last Edit: 17:14, 11 July 17 by LambdaMikel »

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #65 on: 17:11, 11 July 17 »
Just to be sure - the layout I posted is when I am turning the card upside down such that I am looking directly INTO the IDC box header (male IDC).
Did you by any chance describe the layout on the motherboard (female IDC connectors on board?) That would describe the difference as well.

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.112
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3932
  • Likes Given: 410
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #66 on: 17:28, 11 July 17 »
There's an easy way to test if the pin numbering is correct: Put pins on the PCB instead of a socket and then connect an IDC connector/cable to the header: Is "your" pin one connected to the red wire? If not you've got it wrong.

Bryce.

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #67 on: 18:29, 11 July 17 »
Hmm, the pins / connector on LambdaSpeak are already PINs / male.
If I do this test you suggested, then pin1 of the cable (marked by a little arrow) alligns with pin 49.

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #68 on: 18:32, 11 July 17 »
But with your test, there are still 2 possible outcomes depending on how I put the cable on the headers
Without the little notch? It can then either be pin 2 or pin 49 in my case.

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #69 on: 18:49, 11 July 17 »
This is how I got my layout:

Code: [Select]
--------------|_|---------------
| pin1                   pin49 |
| pin2                   pin50 |
--------------------------------

If you look at the CPC 464 expansion port from behind, you will get the following picture:

Code: [Select]
                                  --------------------------------
LOUDSPEAKER   VIDEO   POWER       | pin49                   pin1 |
                                  | pin50                   pin2 |
                                  --------------------------------

Then if you pair this with an IDC box header "1-to-1", such that the notch is facing upwards, then you will get my allignment, where
pin1 = upper left.

Now, if I were to orient the IDC header such that the notch would be facing downwards, then I will get pin 2 = pin 1...

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #70 on: 18:53, 11 July 17 »
Well, flipping the rows (vertically) is easy.. as long as I don't need to flip the horizontal axis. That would be bad!

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.138
  • Country: dk
    • spinpoint.org
  • Liked: 1226
  • Likes Given: 918
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #71 on: 21:02, 11 July 17 »

You need:
--------------|_|---------------
| pin2                   pin50 |
| pin1                   pin49 |
--------------------------------

For top side 90 deg IDC connector mount for MotherX4 compatiblity.


Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #72 on: 00:04, 12 July 17 »
All right, got it! Thanks!

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #73 on: 09:10, 12 July 17 »
This evening, I have finished the software part:
  • reset button handler
  • dip switches for mode selection: sw1 = emic / ssa-1, sw2 + sw3 : voice, sw4 = speaker on/off, sw5 - sw8 = io address of LambdaSpeak
  • control byte: sending &ff to io address toggles between ssa-1 emulation and native emic 2 mode (one can leave ssa-1 mode, change the default voice and volume etc. using native emic 2 mode, and go back to ssa-1, and the new voice will be active!)
With regard to the IO addresses, I currently have
sw5 = faee, fafe, fbee, fbfe (ssa- and dk'tronics)
sw6 = fa00, fb00
sw7 = fa01, fb01
sw8 = fa02, fb02

Only one switch can be "on" of course (and exactly one switch has to be on).

LambdaSpeak cannot distinguish between fa and fb (by design), because ssa-1 replies to both addresses.

It also uses the DK'tronics port, but only SSA-1 emulation is implemented.

Does anybody have any problems with the ports for sw6 - sw8? I looked at the CPC io port list and couldn't find any hardware that would be using these, so it should be fine?
« Last Edit: 09:19, 12 July 17 by LambdaMikel »

Offline LambdaMikel

  • 6128 Plus
  • ******
  • Posts: 1.650
  • Country: us
    • Homepage
  • Liked: 899
  • Likes Given: 684
Re: New "Next Generation Speech Synthesizer" for the CPC 464
« Reply #74 on: 09:51, 12 July 17 »
sw6 = fa00, fb00 sw7 = fa01, fb01 sw8 = fa02, fb02

Interesting - tried that and got a colorful screen with green background and random pixels at startup  :-X Seems some CPC internal hardware is not very selective about decoding...

Changed these to

sw6 = fad5, fbd5
sw7 = fad6, fbd6
sw8 = fad7, fbd7

This worked with my equipment, and I couldn't find any other hardware listed at these ports.