> For the complete documentation index, see [llms.txt](https://vesta-guide.gitbook.io/vesta-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vesta-guide.gitbook.io/vesta-guide/portuguese-pt/vesta-434.md).

# VESTA-434

## Introdução

Este guia explicará como a integração do megafone com o VESTA funciona. Você aprenderá sobre o processo de configuração, recursos principais e como maximizar a eficácia dessa integração.

<figure><img src="/files/7020b7d8149ade9e7059635bfbba1108f4dcf2d6" alt=""><figcaption></figcaption></figure>

## 🔐 Acesso local

A seguir estão os dados de acesso local ao alto-falante:

<table data-header-hidden><thead><tr><th width="350"></th><th></th></tr></thead><tbody><tr><td>IP PADRÃO</td><td>192.168.5.200</td></tr><tr><td>NOME DE USUÁRIO PADRÃO</td><td>admin</td></tr><tr><td>SENHA PADRÃO</td><td>admin</td></tr></tbody></table>

## Carregar novo arquivo de áudio

<figure><img src="/files/22f7c5ecbe420908e23fdeb4772cc682ecbb517f" alt=""><figcaption><p>Para carregar novo arquivo mp3</p></figcaption></figure>

{% hint style="info" %}
Lembre-se de habilitar em ALARM -> HTTP URL (Play File Enable)
{% endhint %}

<figure><img src="/files/72b4e390485836da58549e82e66e4a114dc4e9bc" alt=""><figcaption></figcaption></figure>

## 📢 Comandos HTTP para executar spots de áudio no VESTA

### 🔊 **Exemplos de Ação Play da API**

**Ação Parar:**&#x20;

* <http://192.168.0.155/api/play?action=stop>

**Iniciar reprodução bell1:**&#x20;

* <http://192.168.0.155/api/play?action=start\\&file=bell1>

**Iniciar reprodução de userfile1 uma vez com volume 10**:&#x20;

* <http://192.168.0.155/api/play?action=start\\&file=userfile1\\&mode=once\\&volume=10>

**Iniciar reprodução de userfile1 várias vezes (10 vezes) com volume 20:**

* <http://192.168.0.155/api/play?action=start\\&file=userfile1\\&mode=multiple\\&count=10\\&volume=20>

**Iniciar reprodução de userfile1 por uma duração específica (10 vezes) com volume 30:**&#x20;

* <http://192.168.0.155/api/play?action=start\\&file=userfile1\\&mode=duration\\&count=10\\&volume=30>

## Ativando uma faixa de áudio a partir do VESTA

{% hint style="success" %}
Estes **HTTP** comandos podem ir diretamente nas ações de regra do VESTA. Por exemplo, podemos programar uma regra que, em caso de alarme, lançará a faixa de áudio 1 no megafone: Criamos uma regra com o seguinte:&#x20;

* ***GATILHO:** Alarme -> Qualquer alarme*&#x20;
* ***CONDIÇÕES:** Na*&#x20;
* ***AÇÕES:** HTTP ->* <http://192.168.0.155/api/play?action=start\\&file=><mark style="color:vermelho;">userfile1</mark>
  * *<mark style="color:vermelho;">userfile1</mark>*: Este é o primeiro arquivo mp3 que carregamos no alto-falante
    {% endhint %}

<figure><img src="/files/c3d84018d1fc3d60faf96b44ef3277251775d49b" alt=""><figcaption><p>Exemplo de regra no VESTA</p></figcaption></figure>

***

## Baixar guia completo do manual

{% file src="/files/0e6ace23c7fb270e9cccd62a9c60babe38c22047" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://vesta-guide.gitbook.io/vesta-guide/portuguese-pt/vesta-434.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
