You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added separate section for Recommended setup and Advanced setup
- Added Cautionary note for Advanced setup
- Rephrased words and added more details in some sections
- Changed the env vars for REGISTRY and TAG to PUB_REGISTRY and PUB_TAG
- This was done so that they do not conflict with REGISTRY and TAG vars handled in setup scripts.
- These variables are explicitly meant for public images and their different tags; have no similarity with the ones in setup script.
Signed-off-by: Krishna Murti <[email protected]>
Copy file name to clipboardExpand all lines: microservices/audio-analyzer/docs/user-guide/get-started.md
+24-18Lines changed: 24 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,26 +80,32 @@ Refer to [supported models](./Overview.md#models-supported) for the list of mode
80
80
81
81
# Quick Start
82
82
83
-
User has following different options to start and use the application :
83
+
User has following different options to setup/build and use the application.
84
84
85
-
-[Build the image and run using Docker script](./how-to-build-from-source.md#build-and-run-using-docker-script). Docker script helps build images for application and any required dependency and deploy the application. Default storage backend used here is `minio` but can be updated to use `local` storage backend.
86
-
-[Use pre-built image for standalone setup](#standalone-setup-in-docker-container). Standalone setup has no external dependency. Default and recommended storage backend: `local`.
87
-
-[Build and setup on host using setup script](./how-to-build-from-source.md#setup-and-run-on-host-using-setup-script). Only storage backend available: `local`
88
-
-[Build and setup on host manually](#manual-host-setup-using-poetry). Default storage backend used is `local` but can be configured to use `minio` storage backend.
85
+
### Recommended Setup
86
+
-[Use pre-built image for standalone setup](#standalone-setup-in-docker-container). Standalone setup has no external dependency. Storage backend used: `local`.
87
+
-[Build and run on host using setup script](./how-to-build-from-source.md#build-and-run-on-host-using-setup-script). Storage backend used: `local`
88
+
89
+
### Advanced Setup
90
+
91
+
> __**NOTE :**__ Audio-Analyzer microservice can also be run with Minio as its storage backend. However, this is not a recommended setup and is only meant for advanced users. This setup requires familiarity with using Minio and using non-documented API requests.
92
+
93
+
-[Build and run in container using Docker script](./how-to-build-from-source.md#build-and-run-in-container-using-docker-script). Docker script helps build images for application and deploy the application with any optional dependency. Default storage backend used here is `minio` but can be updated to use `local` storage backend. If `minio` storage backend is used, then the script also brings up Minio server container along with application container.
94
+
-[Build and run on host manually](#build-and-run-on-host-manually). Default storage backend used is `local` but can be configured to use `minio` storage backend.
89
95
90
96
91
97
## Standalone Setup in Docker Container
92
98
93
99
1. Set the registry and tag for the public image to be pulled.
94
100
95
101
```bash
96
-
exportREGISTRY=intel/
97
-
exportTAG=latest
102
+
exportPUB_REGISTRY=intel/
103
+
exportPUB_TAG=latest
98
104
```
99
105
2. Pull public image for Audio Analyzer Microservice:
7. Access the Audio-Analyzer API in a web browser on the URL given by this command:
@@ -135,23 +141,23 @@ User has following different options to start and use the application :
135
141
echo http://${host}:${port}/docs
136
142
```
137
143
138
-
## API Usage
144
+
### API Usage
139
145
140
146
Below are examples of how to use the API on command line with `curl`.
141
147
142
-
### Health Check
148
+
#### Health Check
143
149
144
150
```bash
145
151
curl "http://localhost:$port/api/v1/health"
146
152
```
147
153
148
-
### Get Available Models
154
+
#### Get Available Models
149
155
150
156
```bash
151
157
curl "http://localhost:$port/api/v1/models"
152
158
```
153
159
154
-
### Filesystem Storage Examples
160
+
#### Filesystem Storage Examples
155
161
156
162
#### Upload a Video File for Transcription
157
163
@@ -172,7 +178,7 @@ Once the transcription process is completed, the transcript files will be availa
172
178
ls $AUDIO_ANALYZER_DIR/transcript
173
179
```
174
180
175
-
## Transcription Performance and Optimization on CPU
181
+
### Transcription Performance and Optimization on CPU
176
182
177
183
The service uses **pywhispercpp** with the following optimizations for CPU transcription:
178
184
@@ -181,7 +187,7 @@ The service uses **pywhispercpp** with the following optimizations for CPU trans
181
187
- **Greedy Decoding**: Faster inference by using greedy decoding instead of beam search
182
188
- **OpenVINO IR Models**: Can download and use OpenVINO IR models for even faster CPU inference
183
189
184
-
# Manual Host Setup using Poetry
190
+
## Build and run on host manually
185
191
186
192
>**__NOTE :__** This is an advanced setup and is recommended for development/contribution only. As an alternative method to setup on host, please see : [setting up on host using setup script](./how-to-build-from-source.md#setup-and-run-on-host-using-setup-script). When setting up on host, the default storage backend would be local filesystem. Please make sure `STORAGE_BACKEND` is not overridden to **minio**, unless you want to explicitly use the Minio backend.
187
193
@@ -238,7 +244,7 @@ The service uses **pywhispercpp** with the following optimizations for CPU trans
We can run unit tests and generate coverage by running following commandin the application's directory (microservices/audio-analyzer) in the cloned repo:
244
250
@@ -255,15 +261,15 @@ poetry run coverage run -m pytest ./tests
255
261
poetry run coverage report -m
256
262
```
257
263
258
-
## API Documentation
264
+
### API Documentation
259
265
260
266
When running the service, you can access the Swagger UI documentation at:
Copy file name to clipboardExpand all lines: microservices/audio-analyzer/docs/user-guide/how-to-build-from-source.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Following options are provided to build the microservice.
24
24
-[Build and run application with required dependencies using Docker Script](#build-and-run-using-docker-script).
25
25
-[Build and run on host using Setup Script](#setup-and-run-on-host-using-setup-script).
26
26
27
-
## Build and Run using Docker Script
27
+
## Build and run in container using Docker script
28
28
29
29
1. Clone the repository:
30
30
```bash
@@ -86,6 +86,8 @@ Following options are provided to build the microservice.
86
86
./setup_docker.sh
87
87
```
88
88
89
+
4. If above step is successful, it will print the complete URL of API endpoint along with URL of Swagger API docs. Please refer the API docs to learn how to send request to Audio-Analyzer when running with Minio.
90
+
89
91
### Docker Setup Options
90
92
91
93
The `setup_docker.sh` script when run without any parameters builds and runs the production docker images. It additionally supports the following options:
@@ -117,7 +119,8 @@ The production environment uses:
117
119
- Optimized container without development dependencies
118
120
- No source code mounting (code is copied at build time)
0 commit comments