alphacep / alphacep/vosk-server

Getting different outputs in php client samples

Abierto
#161 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
1.3k
Forks
317
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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"]}`

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.