Skip to content

Commit e70aad5

Browse files
committed
change
1 parent fc0b3f3 commit e70aad5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

speech/src/transcribe_sync.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@
102102
$client->close();
103103
}
104104
// print_r($results);
105-
$resultsx[] = $results;
106-
$json = json_encode($results, JSON_UNESCAPED_UNICODE);
105+
$resultsx = new StdClass();
106+
$resultsx->results = $results;
107+
$json = json_encode($resultsx, JSON_UNESCAPED_UNICODE);
107108
echo $json;
108109
// echo html_entity_decode($json);
109110
// echo html_entity_decode((string)$json);

0 commit comments

Comments
 (0)