julius
julius copied to clipboard
About adinnet request!
i'm trying to request a julius server by adinnet option. and when i send a request from python client to servier. i got the information from server follow it:
read waveform input
Stat: adin_tcpip: waiting connection...
Stat: server-client: connect from 192.168.1.14
Stat: adin_tcpip: connected
Error: rdwt: transfer data length exceeded: 2126311276 (>640000)
STAT: no input frame
Stat: adin_tcpip: connection end
i want to know, what's wrong with my config and request method. dose someone can tell me the reason? very thanks!
You have to cut the audio to segments shorter than 20 sec. The data must not contains zeros. The zero is the sign of end of audio segment.
kunnetcn [email protected] ezt írta (időpont: 2020. jan. 1., Sze 7:53):
i'm trying to request a julius server by adinnet option. and when i send a request from python client to servier. i got the information from server follow it: read waveform input
Stat: adin_tcpip: waiting connection... Stat: server-client: connect from 192.168.1.14 Stat: adin_tcpip: connected Error: rdwt: transfer data length exceeded: 2126311276 (>640000) STAT: no input frame
Stat: adin_tcpip: connection end
i want to know, what's wrong with my config and request method. dose someone can tell me the reason? very thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/julius-speech/julius/issues/125?email_source=notifications&email_token=AHNHTWRKUKWLMJSWHDUIEKDQ3Q4XXA5CNFSM4KBZ2OTKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IDRU76A, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNHTWSC2XNECDV4AGGNDBLQ3Q4XXANCNFSM4KBZ2OTA .
You have to cut the audio to segments shorter than 20 sec. The data must not contains zeros. The zero is the sign of end of audio segment.
kunnetcn [email protected] ezt írta (időpont: 2020. jan. 1., Sze 7:53): …
Thanks for your help.... My audio file is only 60.0 KB..The size is not to long to made that error question. So i don't know what's wrong with the config...really need someone help to fix it...
Hi, kunnectcn,
i want to know, what's wrong with my config and request method.
We can never know how did YOU request to the julius server, because you did not clarify your procedure. Showing the brief source code which could replay your problems will help you to get solution.
And the last, in my opinion, you might find an answer from the source code of "Server-side" protocols; e.x. adin_tcpip_read func
in libsent/src/adin/adin_tcpip.c
.
https://github.com/julius-speech/julius/blob/bff4dfedffa78b1afb76d4a4126b8a009eff1cfe/libsent/src/adin/adin_tcpip.c#L167-L182
Additional commnet (13:45)
The implementation of rd
function in /libsent/src/net/rdwt.c
might be helpful for you;
https://github.com/julius-speech/julius/blob/bff4dfedffa78b1afb76d4a4126b8a009eff1cfe/libsent/src/net/rdwt.c#L31-L44
i'm trying to request a julius server by adinnet option. and when i send a request from python client to servier. i got the information from server follow it:
read waveform input
Stat: adin_tcpip: waiting connection... Stat: server-client: connect from 192.168.1.14 Stat: adin_tcpip: connected Error: rdwt: transfer data length exceeded: 2126311276 (>640000) STAT: no input frame Stat: adin_tcpip: connection end
i want to know, what's wrong with my config and request method. dose someone can tell me the reason? very thanks!
Did you solve your problem? I'm trying to request a julius server by adinnet option too, but when i send a request from my java web client to server (Audio input realtime, not using raw file). It's not working. If you did it, please let me know. Thanks you.
I just want to send a "wav file" to julius by http/socket, and get a return message. Witch way should i do the things?BTW, I don't want to use the cmd command like popen and so on! Dose julius's orign method can response my request?
I just want to send a "wav file" to julius by http/socket, and get a return message. Witch way should i do the things?BTW, I don't want to use the cmd command like popen and so on! Dose julius's orign method can response my request?
I did it with open cmd command in python (Record audio from web and send it to python server using Flask). But, when I send by http/socket i got many error. I can't fix it.
I just want to send a "wav file" to julius by http/socket, and get a return message. Witch way should i do the things?BTW, I don't want to use the cmd command like popen and so on! Dose julius's orign method can response my request?
I did it with open cmd command in python (Record audio from web and send it to python server using Flask). But, when I send by http/socket i got many error. I can't fix it.
I think you should upload audio file to the julius's sever, then use python popen command to invoke "julius -input file" to recognize it.Firstly,you should keep the julius' server can be worked rigthtly by itself.. I just finding the way how to pass the audio file to julius server directly. send to julius like this: http:192.168.0.11:5530?file=wav(stream).... and finally get some return msg. No popen by upload! Anyone can help me? Very thx!
I just want to send a "wav file" to julius by http/socket, and get a return message. Witch way should i do the things?BTW, I don't want to use the cmd command like popen and so on! Dose julius's orign method can response my request? I did it with open cmd command in python (Record audio from web and send it to python server using Flask). But, when I send by http/socket i got many error. I can't fix it.
I think you should upload audio file to the julius's sever, then use python popen command to invoke "julius -input file" to recognize it.Firstly,you should keep the julius' server can be worked rigthtly by itself.. I just finding the way how to pass the audio file to julius server directly. send to julius like this: http:192.168.0.11:5530?file=wav(stream).... and finally get some return msg. No popen by upload! Anyone can help me? Very thx!
Have you solved the problem? I'm having the same question too. I'm finding how to pass the audio file through http post method directly to julius server and get response from julius. Please help me if you have solved the problem.
You need to send a file in a correct format. Take a look at the sample file from sf.net/projects/juliusmodels. Then see its header format using 'soxi' command. Once you have that make sure that your recording is configured appropriately in terms of recording frequency.
You need to send a file in a correct format. Take a look at the sample file from sf.net/projects/juliusmodels. Then see its header format using 'soxi' command. Once you have that make sure that your recording is configured appropriately in terms of recording frequency.
Thanks for your support! I have 1 more question, can Julius send response results direcly to a web server's port?
Not that I know of. I have my own version of Julius which does that. Will publish it some day.
The "transfer data length exceeded" is probably because you are not prepending the data with its length when writing to the socket. See https://github.com/julius-speech/julius/issues/30#issuecomment-856461359
@kunnetcn Can you share your python script to stream the waveform input?