Download the PHP package tigusigalpa/yandex-speechkit-php without Composer

On this page you can find all versions of the php package tigusigalpa/yandex-speechkit-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yandex-speechkit-php

Yandex SpeechKit PHP SDK

Yandex SpeechKit PHP SDK

PHP Version Laravel

PHP SDK для работы с Yandex SpeechKit API. Работает как самостоятельная библиотека или как Laravel-пакет. Если вам нужно транскрибировать аудио, определять спикеров или анализировать речь из PHP — вы по адресу.

Язык: Русский | English

Что умеет

Экосистема

Пакет входит в небольшое семейство PHP-библиотек для Yandex Cloud:

Об авторизации можно не думать — yandex-cloud-client-php сам разберётся с IAM-токенами.

Требования

Установка

Настройка Laravel

1. Опубликуйте конфиг

Создаст файл config/yandex-speechkit.php.

2. Пропишите .env

Минимум нужен folder ID и один из способов авторизации:

3. Service Provider

Регистрируется автоматически через package discovery Laravel — ничего делать не нужно.

Использование

Чистый PHP (без Laravel)

С Laravel

Полный пример со всеми настройками

Передача аудио в base64

Нет удалённого URL? Можно передать содержимое файла напрямую:

Работа с raw PCM

Отмена операции

Передумали? Не проблема:

Справочник API

Методы клиента

Метод Что делает Возвращает
recognizeFileAsync($request) Запускает асинхронное распознавание Operation
getRecognition($operationId) Забирает результат распознавания RecognitionResult
deleteRecognition($operationId) Удаляет сохранённые результаты bool
getOperation($operationId) Проверяет статус операции Operation
cancelOperation($operationId) Отменяет операцию Operation
recognizeAndWait($request, $poll = 10, $maxWait = 14400) Всё в одном: отправить, дождаться, вернуть результат RecognitionResult
getCloudClient() Возвращает базовый cloud-клиент YandexCloudClient

Поддерживаемые форматы

Формат Тип Как использовать
WAV Контейнер AudioFormat::container('WAV')
OGG_OPUS Контейнер AudioFormat::container('OGG_OPUS')
MP3 Контейнер AudioFormat::container('MP3')
LINEAR16_PCM Raw AudioFormat::raw('LINEAR16_PCM', 16000, 1)

Модели распознавания

Обработка ошибок

Три типа исключений, чтобы можно было реагировать по ситуации:

Тесты

Ссылки

Лицензия

MIT. См. LICENSE.

Автор

Игорь СазоновGitHub · [email protected]

Участие в разработке

PR и issues приветствуются. См. CONTRIBUTING.md.


All versions of yandex-speechkit-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
tigusigalpa/yandex-cloud-client-php Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tigusigalpa/yandex-speechkit-php contains the following files

Loading the files please wait ...