Download the PHP package decole/quasar-iot without Composer
On this page you can find all versions of the php package decole/quasar-iot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download decole/quasar-iot
More information about decole/quasar-iot
Files in decole/quasar-iot
Package quasar-iot
Short Description Bundler for yandex quasar for Yandex Alice remote TTS
License MIT
Informations about the package quasar-iot
Quasar PHP bundle for Alice devices
Install by composer
Requirements:
Client for https://yandex.ru/quasar/iot/
It is bundle for Laravel and just for simple php projects, which will help send text messages to an audio smart devices via external api https://yandex.ru/quasar/iot/. Audio device with voice assistant Alice will be able to say what you sent without your manual voice activation.
100 characters limit per message !
I did it myself for voicing notifications and important notifications.
Optionally, if you use Laravel, you can publish the config file of this package with this command:
How to find cookies
Log in to https://yandex.ru/quasar/iot/
Press F11 in your browser to open "Developer Tools"
In the tab "Network" open any Fetch/XHR request and in the Request Headers copy the line from Cookie:
.
This Cookie string is needed for this library to work.
An example of the steps to use this library:
- You need to add your smart speaker to the devices of your Yandex account. So that your device can be seen in https://yandex.ru/quasar/iot/.
- Pull out Cookie of your account and save. This line is needed for the entire service to work. See picture above.
- Find the column id. the
$service->getDevices()
method will give you all your devices (in all houses and rooms) - You need to create a custom script if it doesn't already exist. For example, it could be a scenario named "Голос"
$service->createScenario()
- Change the spoken text
$service->changeTextSpeechByScenario('Всем привет');
- 100 characters limit - Executing a voice message command
$service->executeSpeechByScenario();
- Deleting a scenario
$service->deleteScenario();
QuasarClient methods
Для Россиян и понимающих русский язык:
Установка через composer
Требования:
Клиент (api обертка) для https://yandex.ru/quasar/iot/
Обертка для Laravel, так и просто для проектов на php, которая поможет отправлять текстовые сообщения на аудиоколонку через внешнее api https://yandex.ru/quasar/iot/. Колонка с голосовым помощником Алиса сможет говорить то, что вы отправили без вашей голосовой активации.
Ограничение на 100 символов в сообщении !
Делал себе для озвучивания нотификаций и важных сообщений.
При желании, если вы используете Laravel, вы можете опубликовать файл конфигурации этого пакета с помощью этой команды:
Как найти cookies
Зайти и авторизоваться на https://yandex.ru/quasar/iot/
Нажать на F11 в вашем браузере, чтобы открыть "Инструменты разработчика"
Dо вкладке "Network" открыть любой Fetch/XHR запрос и в Request Headers скопировать строку из
Cookie:
параметра. Данная строка понадобиться, чтобы работы этой библиотеки.
Пример этапов применения данной библиотеки:
- Нужно добавить вашу умную колонку в устройства вашей учетной записи Яндекса. Чтобы в https://yandex.ru/quasar/iot/ ваше устройство было видно.
- Вытащить Cookie вашей учетной записи и сохранить. Данная строка нужна для работы всего сервиса. Смотри рисунок выше.
- Найдите id колонки. метод
$service->getDevices()
выведет вам все ваши устройства (во всех домах и комнатах) - Нужно создать специальный сценарий, если его еще нет. Например, это может быть сценарий с именем "Голос"
$service->createScenario()
- Изменение озвучиваемого текста
$service->changeTextSpeechByScenario('Всем привет');
- ограничение в 100 символов - Выполнение команды озвучки сообщения
$service->executeSpeechByScenario();
- Удаление сценария
$service->deleteScenario();
QuasarClient методы
All versions of quasar-iot with dependencies
ext-json Version *
ext-curl Version *
ext-mbstring Version *