LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to covert a text messag into 8 bit mono sound file

i m using labview 8.2 i want to covert text message into 8bit mono sound file
0 Kudos
Message 1 of 9
(7,155 Views)
Hi,
 
This will convert your text in mono 8bit at 16.000 HZ (so 128.000 ko/s) and write it in a wav file.
 
The joint file il a librery, open in le file "Sans titre 1.vi"
 
I hope it can help you.
     Ben
0 Kudos
Message 2 of 9
(7,151 Views)
Hi Ben,

can you please resave your llb without vi.lib vis? Don't include them when creating llbs, everybody using LV should already have them in it's installation...

@Ezeemon,

what do you want: just convert a string (containing some u8 values) into a wav file? Or do you want to have a text "spoken" in a wav file?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 9
(7,140 Views)
 a text "spoken" in a wav file
with sampling rate of 11025
and 8 bit mono wave file
0 Kudos
Message 4 of 9
(7,135 Views)
I'm sorry but I don't know to resave without all that you have il c:/prog/Labview/vi/...
Can you tell me more please? Because just with le ***.vi you can't run the vi 😕
 
Does my firt post help for the problem? (I can modify if not 😉 )
0 Kudos
Message 5 of 9
(7,114 Views)

the application u sent is creating the wave file but the wave file created is not audible

my requirement is to convert a given text into speech and then send through a serial voice modem actually i m creating an answering machine. I got a VI that converts text into 16 bit mono and sampling rate 22050 s/sec but my requirement is 8-bit mono with sampling rate of 11025 s/sec. Is it possible to convert the available vi into my requirements it's attached with this.

thanks for help

Regards

Ezeemon

0 Kudos
Message 6 of 9
(7,104 Views)
Hi Ben,

to save without using vi.lib vis:
Load the (original) vi "Sans titre 1" (not the one from hte llb!), choose "Save with options" from the menu, choose "Development distribution" with standard settings (save entiry hierarchy, don't include vi.lib, include external subroutines and rtms)... See attachment...

But I doubt ezeemon will be satisfied by your post as he wants to have (IMHO) a routine that speaks a text to a wavfile... Something like this from Microsoft.



Message Edited by GerdW on 02-28-2008 02:56 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 9
(7,100 Views)
Hi ezeemon,

that's not nice! Smiley Mad You ask us the tricky part (converting text to spoken wave) when you already have this functionality?!?
All you need is a conversion routine from 16bit mono, 22050Hz to 8bit mono, 11025Hz!

Easy solution:
Read in the existing wav, divide samples by 256 (simple conversion from 16bit to 8bit...), take every 2nd sample (easy conversion from 22050 to 11025Hz) and use Ben's routine to save as new wav file! There are more sophisticated ways for down-conversion, but that's the simple way Smiley Wink

Btw. I attached a somewhat cleaned up version of your vi. You should put controls into their event cases and use latching mechanical action for the switches... I couldn't run your vi as the dll is giving an error ("Error initializing TTSApp")...

Btw2: Maybe your TTS-dll already contains some functions to choose the output format?


Message Edited by GerdW on 02-28-2008 03:14 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 9
(7,093 Views)

Very good example but I have a doubt and as I need to change the voice to Spanish and dothank you very much
Att Edwin Chiguano
Quito Ecuador

0 Kudos
Message 9 of 9
(6,091 Views)