alphacep / alphacep/vosk-server

Getting different outputs in php client samples

Aperta
#161 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
1.3k
Fork
317
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm running this code in vosk-server/client-samples/php/asr-test passing the same file that i am passing to python client but this file is not returning correct output it is different from the output that i have got with python script.

```
require_once("./vendor/autoload.php");

use WebSocket\Client;

$client = new Client("ws://localhost:2700/", array('timeout' => 20000));
$myfile = fopen("test.wav", "rb");
while(!feof($myfile)) {
$data = fread($myfile, 8000);
$client->send($data, 'binary');
echo $client->receive() . "\n";
}
$client->send("{\"eof\" : 1}");
echo $client->receive() . "\n";
fclose($myfile);

?>

```
Output :

` { "partial" : "" } { "text" : "" }`

python output :
`{"result": [{"conf": 0.584788, "end": 5.039281, "start": 4.86, "word": "test"}, "test"]}`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.