Local Monitoring Tool
Last updated
Last updated
This tool is used for
Local Broadcast Monitoring System() is used to monitor live radio streams on your own local server.
Python 2.7
Works on Linux/Windows
Follow one of the tutorials to create a project and get your host, access_key.
You should register an account on the , and create a with local monitoring type, you will get access_key, then add your live radio streams in your project.
Clone the code in your local server.
Install MySQL, import acrcloud_database.sql to your mysql server. $mysql -uroot -p < acrcloud_database.sql
.
Modify configuration file (acrcloud_config.py), fill access_key, access_secret and database info in the config file.
Run python acrcloud_local_server.py
to start monitor server.
You can use client to refresh, get stream state, pause and restart stream, run python acrcloud_client.py
.
You can use Ctrl + \
to stop monitor server (in Linux).
You can get monitoring results in your MySql database.
If you want to record recognize audio, you can set config["record"]["record"]=3 (default is 0 and it means not record).
You can set config["record"]["record_dir"] to specify the save path.
You can set config["record"]["record_save_days"] to specify the keep days of record files.
These config can be set in "acrcloud_config.py"
Install Windows Runtime Library
Create Databases(in acrcloud_local_monitor direction and run this command)
mysql -uroot -p < acrcloud_database.sql
Install Python Dependency Library(in acrcloud_local_monitor direction and run the script)
.\install_python_packages_for_windows.bat
Find and Download:
MySQL_python‑1.2.5‑cp27‑none‑win32.whl (or MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl)
python -m pip install MySQL_python‑1.2.5‑cp27‑none‑win32.whl
python -m pip install mysql-python
Copy the ACRCloud Library into the acrcloud_local_monitor direction according to your system.
X86: copy from winlibs/win32/acrcloud_stream_decode.pyd to acrcloud_local_monitor direction
X64: copy from winlibs/win64/acrcloud_stream_decode.pyd to acrcloud_local_monitor direction
If you have created Local Project and add some streams, config the acrcloud_config.py with your access_key, and mysql information, then start the local server
python acrcloud_local_server.py
Stop the local monitor server
python acrcloud_stop.py
and Ctrl-C
Install Docker
Run following command
git clone https://github.com/acrcloud/acrcloud_local_monitor
cd acrcloud_local_monitor
Change the config file "acrcloud_config.py", fill in your project "access_key", and mysql setting(host, port, user, passwd), if Mysql was installed in your computer, please create a remote user and set field "host" to your private IP(ifconfig in Linux or ipconfig in Windows, "host.docker.internal" in Mac OS)
docker build -t acrcloud/acr_local_monitor_image:v1 .
docker run --rm -itv /<Change to your directory>/acrcloud_local_monitor:/docker_local_monitor --name="acr_local_monitor" acrcloud/acr_local_monitor_image:v1
X86:
x64:
Install on your windows
Install
Install
Open
If you are using Windows: Download and install.
If you are using MacOs: Download and install.
If you are using Linux: Open the Terminal and input bash <(curl -s )