yi-hack-Allwinner-v2 icon indicating copy to clipboard operation
yi-hack-Allwinner-v2 copied to clipboard

Speak through camera (TTS / audio upload PPT)

Open fabiosoft opened this issue 3 years ago • 18 comments

I repost here... avoid writing in other repo.

I updated to 0.1.9 and browsing to speak.html page... the UI is really nice. But i click on TTS or upload a wav file nothing happens, and the camera is quite.

I installed the engine for tts and nothing changes... Wav file format seems correct... i converted the file using the specs you provided. (S16LE / 8 KHz, 16 bit, mono)

Here is a VLC file information: 137207957-5251c11e-1b89-4010-b60b-2c13cdd20f91

How can i use this feature? I tried on a y21ga and r30gb models

fabiosoft avatar Oct 21 '21 21:10 fabiosoft

Sorry, there is an error in the label. The format is S16LE / 16 KHz, 16 bit, mono, not 8 KHz. 8 KHz is the format for the output.

Try again please.

roleoroleo avatar Oct 22 '21 07:10 roleoroleo

image

I've followed all instructions but when I try to send the wav to the cam it responds but I can hear nothing image

thedevstone avatar Oct 24 '21 13:10 thedevstone

Error is false, so the web service works. Are you able to hear the sound using the official app? Did you disassemble the cam? The speaker is on the back of the box, when you reassemble it you have to tighten the screws to ensure the contact.

roleoroleo avatar Oct 25 '21 07:10 roleoroleo

From the app everything works like a charm. @Giulianini can you upload your demo file so i can test the same?

fabiosoft avatar Oct 25 '21 21:10 fabiosoft

@fabiosoft Uploaded here in sendspace

thedevstone avatar Oct 25 '21 23:10 thedevstone

Check this commit: https://github.com/roleoroleo/yi-hack-Allwinner-v2/commit/5ed736f2b04b1e503bcaf111f3ade4fcf9301766 I pushed it after 0.1.9 release.

roleoroleo avatar Oct 26 '21 09:10 roleoroleo

image @roleoroleo i'm using yi-hack-allwinner-v1 (I have a 9FUS), speaker.sh differs from yi-hack-allwinner-v2, they don't have to be the same?

thedevstone avatar Oct 26 '21 16:10 thedevstone

Sorry, what's your model?

roleoroleo avatar Oct 26 '21 21:10 roleoroleo

Y20ga

thedevstone avatar Oct 26 '21 21:10 thedevstone

news?

thedevstone avatar Oct 28 '21 09:10 thedevstone

Not yet.

roleoroleo avatar Oct 28 '21 15:10 roleoroleo

@roleoroleo news for speak through camera?

thedevstone avatar Nov 13 '21 15:11 thedevstone

I tested again the web page with my y21ga and it seems working properly. Both text and audio file. Did you solve your problem?

Are you sure you are not confusing the 2 models? allwinner and allwinner-v2? Check your model.

roleoroleo avatar Nov 14 '21 16:11 roleoroleo

I'm using y20ga and all winner V1. The speaker.sh file of allwinner V1 is different from V2. They don't have to be the same?

thedevstone avatar Nov 14 '21 16:11 thedevstone

They are different, yes.

roleoroleo avatar Nov 14 '21 17:11 roleoroleo

i have also the problem to hear something and found aout that in v 0.19 th cgi-bin/speaker.sh use the command "speaker on" but this it not in path .. if i do it over ssh with

root@yi-cam-1:~# /tmp/sd/yi-hack/bin/speaker on
Running ioctl: num 16
root@yi-cam-1:~# cat /tmp/sd/yi-hack/samples/Front_Center.wav > /tmp/audio_in_fifo
root@yi-cam-1:~# /tmp/sd/yi-hack/bin/speaker off
Running ioctl: num 17
root@yi-cam-1:~# 

it works fine so i think i could be also you problem? can we fix it in 0.20?

speaker.sh.txt

d0m1n1qu3 avatar Nov 14 '21 22:11 d0m1n1qu3

speak.cgi should inherit PATH variable from httpd daemon, but I can add it to the next release to avoid any problem. But @Giulianini is running on a different cam, where speaker command doesn't exist (no need to move the gpio to activate the speaker).

roleoroleo avatar Nov 15 '21 09:11 roleoroleo

Ok thanks @roleoroleo

thedevstone avatar Nov 16 '21 19:11 thedevstone

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 08 '22 23:12 stale[bot]