| | |
how to play wav file
![]() |
•
•
•
•
Is it possible to make a wav file with the available data from the text file and play it in VB.
You're greatest chance of success of doing what you're asking comes from the program that is able to convert the wav file into a text file. Does that program have the capability to convert the text back into a wav file? And does that program offer any dll's or APIs that you can reference in VB to accomplish that goal.
The real person that you should be asking this question is the person who wrote the program that can convert a wav file into a text file.
•
•
•
•
what is the possible answer
If the first choice is a possibility, you will have to figure out how to use that program's dll in your program.
The second choice is easier and only requires a little imagination. I would just use the first 20 or so characters of the text file created from the wave file and use it to identify the wave file.
Make a one-to-one association between that text value and your wave file. Based on the identity of the text file, just play the wave file that corresponds to the text file. You don't have to convert the file from text to wave, you just play the appropriate file based on the value of the first 20 or so characters that the program produces.
•
•
Join Date: Dec 2007
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
In programming just about anything is possible. But if you're asking this question thinking that VB has a built in capability to do what you're asking, think again.
You're greatest chance of success of doing what you're asking comes from the program that is able to convert the wav file into a text file. Does that program have the capability to convert the text back into a wav file? And does that program offer any dll's or APIs that you can reference in VB to accomplish that goal.
The real person that you should be asking this question is the person who wrote the program that can convert a wav file into a text file.
anyways thnx hkdani for helping me...
i am eager for your next reply...
thnx
Last edited by ibeast; Dec 11th, 2007 at 4:19 am.
•
•
•
•
Well the program that i have is actually a C program that can print data in a text file. It doesnt even print the numbers but makes a "wave-like" design using " * "
If it's taking advantage of one of Microsoft's DirectX SDK APIs, a C programmer could probably take advantage of the same API's to produce a wave file from the text data. But more than likely a lot of the information about the original sound (texture, quality, resonance, etc.) would be lost.
The C program probably just extracts the frequency and the duration of the pitch and outputs a text character at a particular position. It's not that complicated. But I wouldn't bet the outhouse on being able to reproduce the same original sound from just the text data.
Hank
![]() |
Similar Threads
- help executing a .wav file with php code (PHP)
- How do I play a .wav file from Resources? (VB.NET)
- Play a .wav file (Java)
- can't play wav sound... (C++)
- .wav file on x86 (Assembly)
- wav file problem (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: library system
- Next Thread: Adding buttons to a dhtml page
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





