English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 13 April 2020, 00:06   #1
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
Can narrator.device output to raw file?

Hi

I was wondering for a small project whether it would be possible to get the amiga’s text to speech (narrator.device) to output to a raw audio file instead of being played through the speakers or is this just an impossible task?

I was wanting to create a program to do this so these files can be exported later to PC to be used in a modern app. Ideally have amiga emulator running in the background with some automation to get the files over to the PC

Final goal: on windows i can type something and the text gets processed on amiga and then the PC receives the speech file and can play it back
Nightfox is offline  
Old 13 April 2020, 07:03   #2
Zack
Registered User
 
Zack's Avatar
 
Join Date: Feb 2004
Location: Valby, Denmark
Age: 48
Posts: 90
Could this be of any use? http://aminet.net/package/util/conv/say2raw
Have not tried it myself.
Zack is offline  
Old 13 April 2020, 10:18   #3
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
Quote:
Originally Posted by Zack View Post
Could this be of any use? http://aminet.net/package/util/conv/say2raw
Have not tried it myself.

Thanks. I'll try this one in the meantime but looking at the doc, it has a fixed buffer of 100000 bytes so if a speech is too long for that, it results in an error so it's limited.
Nightfox is offline  
Old 13 April 2020, 10:52   #4
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,236
Quote:
Originally Posted by Nightfox View Post
I was wondering for a small project whether it would be possible to get the amiga’s text to speech (narrator.device) to output to a raw audio file instead of being played through the speakers or is this just an impossible task?

The narrator.device output goes to the audio.device, always. This is hardcoded. What one could do is patch up the audio.device BeginIO() function and by that redirect the output to a file, but there is no option or flag of the narrator.device itself.
Thomas Richter is offline  
Old 13 April 2020, 11:02   #5
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
Quote:
Originally Posted by Thomas Richter View Post
The narrator.device output goes to the audio.device, always. This is hardcoded. What one could do is patch up the audio.device BeginIO() function and by that redirect the output to a file, but there is no option or flag of the narrator.device itself.

Interesting. I'm assuming there's no modern port of narrator.device that works on x86 is there? That would be the most convenient option.


Otherwise, is there a commented disassembly of audio.device as a starting point for patching that function?
Nightfox is offline  
Old 13 April 2020, 16:48   #6
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
If you are doing this purely to get the "sound" of the amiga narrator, maybe you could find an x86 implementation that generates the same sound, considering C= licensed the speech tech from a third party (can't remember who).
hooverphonique is offline  
Old 13 April 2020, 17:02   #7
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
All I need is the sound. I have an existing text to speech iOS app that I made and I just thought it would be cool if possible to get the old Amiga voice in there as a selectable voice. Even if it means sending the text to a server to process the text which sends back the audio file to be played back by the phone.
Nightfox is offline  
Old 30 April 2020, 14:39   #8
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,236
Quote:
Originally Posted by Nightfox View Post
Interesting. I'm assuming there's no modern port of narrator.device that works on x86 is there?
There certainly is:


http://www.text2speech.com/


Though this is commercial. Note that this product is by the same people that created the narrator.device. I do not know how well this works, and I am not affiliated with them.


Quote:
Originally Posted by Nightfox View Post

Otherwise, is there a commented disassembly of audio.device as a starting point for patching that function?
Why would you need a dissambly for that? The device interface is publically available.
Thomas Richter is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Games that can't be represented in a CT RAW file! BarryB project.SPS (was CAPS) 0 09 September 2017 15:29
narrator.device via assembly h0ffman Coders. System 6 30 July 2016 19:50
Select output device for CD audio thomas support.WinUAE 1 29 July 2014 21:15
Narrator.device thinlega request.Apps 2 31 May 2004 06:37
narrator.device? th4t1guy support.WinUAE 4 23 April 2004 15:27

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 10:17.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07442 seconds with 15 queries