Skip to content

Commit a9a88e7

Browse files
Merge pull request #2297 from SyedImtiyaz-1/Audio-Detect
Added MicroSound Detector & Sensor
2 parents 7939403 + be37fe9 commit a9a88e7

23 files changed

+672
-0
lines changed

audio_detect/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
### Requirements
2+
3+
- [Milvus 0.10.5](https://milvus.io/docs/v0.10.5/milvus_docker-cpu.md) (please note the Milvus version)
4+
- [MySQL](https://hub.docker.com/r/mysql/mysql-server)
5+
- [Python3](https://www.python.org/downloads/)
6+
7+
### Run Server
8+
9+
1. **Install python requirements**
10+
11+
```bash
12+
$ cd bootcamp/solutions/audio_search/webserver/
13+
$ pip install -r audio_requirements.txt
14+
```
15+
2. **Star server**
16+
17+
```bash
18+
$ cd webserver
19+
$ python main.py
20+
```

audio_detect/data/game_sound.zip

7.12 MB
Binary file not shown.

audio_detect/data/test.wav

31.5 KB
Binary file not shown.

audio_detect/pic/all_API.png

74.6 KB
Loading

audio_detect/pic/insert.png

91.4 KB
Loading

audio_detect/pic/search.png

96 KB
Loading

audio_detect/webserver/audio/__init__.py

Whitespace-only changes.

audio_detect/webserver/audio/common/__init__.py

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import os
2+
from milvus import *
3+
4+
MILVUS_HOST = os.getenv("MILVUS_HOST", "127.0.0.1")
5+
MILVUS_PORT = os.getenv("MILVUS_PORT", 19530)
6+
VECTOR_DIMENSION = os.getenv("VECTOR_DIMENSION", 2048)
7+
METRIC_TYPE = os.getenv("METRIC_TYPE", MetricType.IP)
8+
TOP_K = os.getenv("TOP_K", 100)
9+
10+
UPLOAD_PATH = os.getenv("UPLOAD_PATH", "./tmp")
11+
DEFAULT_TABLE = os.getenv("DEFAULT_TABLE", "milvus_audio")
12+
13+
MYSQL_HOST = os.getenv("MYSQL_HOST", "127.0.0.1")
14+
MYSQL_PORT = os.getenv("MYSQL_PORT", 3306)
15+
MYSQL_USER = os.getenv("MYSQL_USER", "root")
16+
MYSQL_PWD = os.getenv("MYSQL_PWD", "123456")
17+
MYSQL_DB = os.getenv("MYSQL_DB", "mysql")

audio_detect/webserver/audio/encoder/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)