mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-04-17 19:36:00 +08:00
ggwave-to-file : change HTTP service url
This commit is contained in:
@@ -34,9 +34,9 @@ You can easily test the library using the free `Waver` application which is avai
|
|||||||
- https://waver.ggerganov.com
|
- https://waver.ggerganov.com
|
||||||
- https://ggwave.ggerganov.com
|
- https://ggwave.ggerganov.com
|
||||||
|
|
||||||
**[REST service](https://github.com/ggerganov/ggwave/blob/master/examples/ggwave-to-file)**
|
**[HTTP service](https://github.com/ggerganov/ggwave/blob/master/examples/ggwave-to-file)**
|
||||||
```bash
|
```bash
|
||||||
curl https://ggwave.ggerganov.com/ggwave-to-file.php?m=Hello\ World! --output hello.wav
|
curl https://ggwave-to-file.ggerganov.com/?m=Hello\ world! --output hello.wav
|
||||||
```
|
```
|
||||||
|
|
||||||
## Technical details
|
## Technical details
|
||||||
|
|||||||
@@ -3,19 +3,19 @@
|
|||||||
Output a generated waveform to an uncompressed WAV file.
|
Output a generated waveform to an uncompressed WAV file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo "Hello World!" | ./bin/ggwave-to-file > example.wav
|
echo "Hello world!" | ./bin/ggwave-to-file > example.wav
|
||||||
```
|
```
|
||||||
|
|
||||||
Based on this tool, there is a REST service available on the following link:
|
Based on this tool, there is an HTTP service available on the following link:
|
||||||
|
|
||||||
https://ggwave.ggerganov.com/ggwave-to-file.php
|
https://ggwave-to-file.ggerganov.com/
|
||||||
|
|
||||||
You can use it to query audio waveforms for different text messages.
|
You can use it to query audio waveforms for different text messages.
|
||||||
|
|
||||||
### curl:
|
### curl:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl https://ggwave.ggerganov.com/ggwave-to-file.php?m=Hello\ World! --output hello.wav
|
curl https://ggwave-to-file.ggerganov.com/?m=Hello\ world! --output hello.wav
|
||||||
```
|
```
|
||||||
|
|
||||||
### python
|
### python
|
||||||
@@ -26,7 +26,7 @@ import requests
|
|||||||
|
|
||||||
def ggwave(message: str, protocolId: int = 1):
|
def ggwave(message: str, protocolId: int = 1):
|
||||||
|
|
||||||
url = 'https://ggwave.ggerganov.com/ggwave-to-file.php'
|
url = 'https://ggwave-to-file.ggerganov.com/'
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
'm': message, # message to encode
|
'm': message, # message to encode
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import requests
|
|||||||
|
|
||||||
def ggwave(message: str, protocolId: int = 1):
|
def ggwave(message: str, protocolId: int = 1):
|
||||||
|
|
||||||
url = 'https://ggwave.ggerganov.com/ggwave-to-file.php'
|
url = 'https://ggwave-to-file.ggerganov.com/'
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
'm': message, # message to encode
|
'm': message, # message to encode
|
||||||
|
|||||||
Reference in New Issue
Block a user