P peggjones Active Member Licensed User Longtime User Sep 17, 2018 #1 Does anyone know if it possible to convert a WAV file to text.
B Brian Dean Well-Known Member Licensed User Longtime User Sep 17, 2018 #2 Yes it is, if you want the text to be the file content in hexadecimal notation, for instance. But I don't think that is what you are looking for. Upvote 0
Yes it is, if you want the text to be the file content in hexadecimal notation, for instance. But I don't think that is what you are looking for.
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2018 #3 Code: Copy Dim su As StringUtils Dim s As String = su.EncodeBase64(File.ReadBytes(...)) Upvote 0
P peggjones Active Member Licensed User Longtime User Sep 19, 2018 #4 The file object in my version of B4A does not have a readbytes method. Is this because the version I have is out of date? I have version 8.00 Upvote 0
The file object in my version of B4A does not have a readbytes method. Is this because the version I have is out of date? I have version 8.00
npsonic Active Member Licensed User Sep 19, 2018 #5 peggjones said: The file object in my version of B4A does not have a readbytes method. Is this because the version I have is out of date? I have version 8.00 Click to expand... Use this Code: Copy Sub ReadBytes (Dir As String, Filename As String) As Byte() Dim input As InputStream = File.OpenInput(Dir,Filename) Dim b(input.BytesAvailable) As Byte input.ReadBytes(b,0,b.Length) input.Close Return b End Sub Upvote 0
peggjones said: The file object in my version of B4A does not have a readbytes method. Is this because the version I have is out of date? I have version 8.00 Click to expand... Use this Code: Copy Sub ReadBytes (Dir As String, Filename As String) As Byte() Dim input As InputStream = File.OpenInput(Dir,Filename) Dim b(input.BytesAvailable) As Byte input.ReadBytes(b,0,b.Length) input.Close Return b End Sub
MarkusR Well-Known Member Licensed User Longtime User Sep 19, 2018 #6 u will really convert a wave file to string? why? u will save it into a sqllite db? Upvote 0
P peggjones Active Member Licensed User Longtime User Sep 19, 2018 #7 Thanks for that but what I actually want it to do is to return as text the contents of the wav file. Upvote 0
P peggjones Active Member Licensed User Longtime User Sep 19, 2018 #8 Yes the intention is to save it to a sqllite database. Upvote 0
MarkusR Well-Known Member Licensed User Longtime User Sep 19, 2018 #9 removed because misunderstood Last edited: Sep 19, 2018 Upvote 0
udg Expert Licensed User Longtime User Sep 19, 2018 #10 As I understand it, the OP would like to "transcribe" the content of the WAV file to plain text, i.e. from a recorded vocal message to its corresponding text, then save the text in a DB. Maybe an online service offered by some big data company? I didn't search for it...it's coffee time! Upvote 0
As I understand it, the OP would like to "transcribe" the content of the WAV file to plain text, i.e. from a recorded vocal message to its corresponding text, then save the text in a DB. Maybe an online service offered by some big data company? I didn't search for it...it's coffee time!
P peggjones Active Member Licensed User Longtime User Sep 19, 2018 #11 What I am trying to achieve is to record people speaking in different languages and convert the recorded files to text for analysis of the structure of the different languages. Sounds a bit odd I know but it is for a linguistics project. Upvote 0
What I am trying to achieve is to record people speaking in different languages and convert the recorded files to text for analysis of the structure of the different languages. Sounds a bit odd I know but it is for a linguistics project.
MarkusR Well-Known Member Licensed User Longtime User Sep 19, 2018 #12 ahh, do you still need the wave file then or u just need the text? for voice to text i used this Code: Copy Sub ButtonNoteVoice_Click Dim Voice1 As MyVoice Voice1.Initialize Wait For (Voice1.RecognizeVoice) Complete (Result As String) EditTextNote.Text= Result End Sub Class MyVoice Code: Copy Sub Class_Globals Private Voice1 As VoiceRecognition 'Phone library End Sub 'Initialisiert das Objekt. Falls nötig kannst du Parameter zu dieser Methode hinzufügen. Public Sub Initialize Voice1.Initialize("Voice1") Voice1.Language="de" End Sub public Sub RecognizeVoice As ResumableSub Voice1.Listen Wait For Voice1_Result (Success As Boolean, Texts As List) If Success And Texts.Size > 0 Then Return "" & Texts.Get(0) End If Return "" End Sub Upvote 0
ahh, do you still need the wave file then or u just need the text? for voice to text i used this Code: Copy Sub ButtonNoteVoice_Click Dim Voice1 As MyVoice Voice1.Initialize Wait For (Voice1.RecognizeVoice) Complete (Result As String) EditTextNote.Text= Result End Sub Class MyVoice Code: Copy Sub Class_Globals Private Voice1 As VoiceRecognition 'Phone library End Sub 'Initialisiert das Objekt. Falls nötig kannst du Parameter zu dieser Methode hinzufügen. Public Sub Initialize Voice1.Initialize("Voice1") Voice1.Language="de" End Sub public Sub RecognizeVoice As ResumableSub Voice1.Listen Wait For Voice1_Result (Success As Boolean, Texts As List) If Success And Texts.Size > 0 Then Return "" & Texts.Get(0) End If Return "" End Sub
MarkusR Well-Known Member Licensed User Longtime User Sep 19, 2018 #14 ok, see above, maybe u can use it. its without wave file. i think without knowing the people spoken languages it will not work. i guess you will try to create a phonetic language text from the recorded sound. https://en.wikipedia.org/wiki/Phonetic_transcription Last edited: Sep 19, 2018 Upvote 0
ok, see above, maybe u can use it. its without wave file. i think without knowing the people spoken languages it will not work. i guess you will try to create a phonetic language text from the recorded sound. https://en.wikipedia.org/wiki/Phonetic_transcription
udg Expert Licensed User Longtime User Sep 19, 2018 #15 A few references..all before the coffe https://cloud.google.com/speech-to-text/ https://gotranscript.com/r/19405 http://transcribe.wreally.com/ https://sonix.ai/ https://www.tomdownload.com/business_finance/word_processing/wave_to_text.htm (an SDK is available) Last edited: Sep 19, 2018 Upvote 0
A few references..all before the coffe https://cloud.google.com/speech-to-text/ https://gotranscript.com/r/19405 http://transcribe.wreally.com/ https://sonix.ai/ https://www.tomdownload.com/business_finance/word_processing/wave_to_text.htm (an SDK is available)
P peggjones Active Member Licensed User Longtime User Sep 19, 2018 #16 udg said: As I understand it, the OP would like to "transcribe" the content of the WAV file to plain text, i.e. from a recorded vocal message to its corresponding text, then save the text in a DB. Maybe an online service offered by some big data company? I didn't search for it...it's coffee time! Click to expand... You understand it perfectly, thanks for taking an interest. I'm surprised it's so difficult. I thought it would be dead straightforward, after all it is easy to record speech to a sound file. Upvote 0
udg said: As I understand it, the OP would like to "transcribe" the content of the WAV file to plain text, i.e. from a recorded vocal message to its corresponding text, then save the text in a DB. Maybe an online service offered by some big data company? I didn't search for it...it's coffee time! Click to expand... You understand it perfectly, thanks for taking an interest. I'm surprised it's so difficult. I thought it would be dead straightforward, after all it is easy to record speech to a sound file.
B Brian Dean Well-Known Member Licensed User Longtime User Sep 19, 2018 #17 I thought it would be dead straightforward, after all it is easy to record speech to a sound file. Click to expand... Edit : Removed - not a helpful contribution. Last edited: Sep 19, 2018 Upvote 0
I thought it would be dead straightforward, after all it is easy to record speech to a sound file. Click to expand... Edit : Removed - not a helpful contribution.