webscout 8.2.6__py3-none-any.whl → 8.2.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of webscout might be problematic. Click here for more details.
- webscout/AIauto.py +1 -1
- webscout/AIutel.py +298 -239
- webscout/Extra/Act.md +309 -0
- webscout/Extra/GitToolkit/gitapi/README.md +110 -0
- webscout/Extra/YTToolkit/README.md +375 -0
- webscout/Extra/YTToolkit/ytapi/README.md +44 -0
- webscout/Extra/YTToolkit/ytapi/extras.py +92 -19
- webscout/Extra/autocoder/autocoder.py +309 -114
- webscout/Extra/autocoder/autocoder_utiles.py +15 -15
- webscout/Extra/gguf.md +430 -0
- webscout/Extra/tempmail/README.md +488 -0
- webscout/Extra/weather.md +281 -0
- webscout/Litlogger/Readme.md +175 -0
- webscout/Provider/AISEARCH/DeepFind.py +41 -37
- webscout/Provider/AISEARCH/README.md +279 -0
- webscout/Provider/AISEARCH/__init__.py +0 -1
- webscout/Provider/AISEARCH/genspark_search.py +228 -86
- webscout/Provider/AISEARCH/hika_search.py +11 -11
- webscout/Provider/AISEARCH/scira_search.py +324 -322
- webscout/Provider/AllenAI.py +7 -14
- webscout/Provider/Blackboxai.py +518 -74
- webscout/Provider/Cloudflare.py +0 -1
- webscout/Provider/Deepinfra.py +23 -21
- webscout/Provider/Flowith.py +217 -0
- webscout/Provider/FreeGemini.py +250 -0
- webscout/Provider/GizAI.py +15 -5
- webscout/Provider/Glider.py +11 -8
- webscout/Provider/HeckAI.py +80 -52
- webscout/Provider/Koboldai.py +7 -4
- webscout/Provider/LambdaChat.py +2 -2
- webscout/Provider/Marcus.py +10 -18
- webscout/Provider/OPENAI/BLACKBOXAI.py +735 -0
- webscout/Provider/OPENAI/Cloudflare.py +378 -0
- webscout/Provider/OPENAI/FreeGemini.py +282 -0
- webscout/Provider/OPENAI/NEMOTRON.py +244 -0
- webscout/Provider/OPENAI/README.md +1253 -0
- webscout/Provider/OPENAI/__init__.py +8 -0
- webscout/Provider/OPENAI/ai4chat.py +293 -286
- webscout/Provider/OPENAI/api.py +810 -0
- webscout/Provider/OPENAI/base.py +217 -14
- webscout/Provider/OPENAI/c4ai.py +373 -367
- webscout/Provider/OPENAI/chatgpt.py +7 -0
- webscout/Provider/OPENAI/chatgptclone.py +7 -0
- webscout/Provider/OPENAI/chatsandbox.py +172 -0
- webscout/Provider/OPENAI/deepinfra.py +30 -20
- webscout/Provider/OPENAI/e2b.py +6 -0
- webscout/Provider/OPENAI/exaai.py +7 -0
- webscout/Provider/OPENAI/exachat.py +6 -0
- webscout/Provider/OPENAI/flowith.py +162 -0
- webscout/Provider/OPENAI/freeaichat.py +359 -352
- webscout/Provider/OPENAI/glider.py +323 -316
- webscout/Provider/OPENAI/groq.py +361 -354
- webscout/Provider/OPENAI/heckai.py +30 -64
- webscout/Provider/OPENAI/llmchatco.py +8 -0
- webscout/Provider/OPENAI/mcpcore.py +7 -0
- webscout/Provider/OPENAI/multichat.py +8 -0
- webscout/Provider/OPENAI/netwrck.py +356 -350
- webscout/Provider/OPENAI/opkfc.py +8 -0
- webscout/Provider/OPENAI/scirachat.py +471 -462
- webscout/Provider/OPENAI/sonus.py +9 -0
- webscout/Provider/OPENAI/standardinput.py +9 -1
- webscout/Provider/OPENAI/textpollinations.py +339 -329
- webscout/Provider/OPENAI/toolbaz.py +7 -0
- webscout/Provider/OPENAI/typefully.py +355 -0
- webscout/Provider/OPENAI/typegpt.py +358 -346
- webscout/Provider/OPENAI/uncovrAI.py +7 -0
- webscout/Provider/OPENAI/utils.py +103 -7
- webscout/Provider/OPENAI/venice.py +12 -0
- webscout/Provider/OPENAI/wisecat.py +19 -19
- webscout/Provider/OPENAI/writecream.py +7 -0
- webscout/Provider/OPENAI/x0gpt.py +7 -0
- webscout/Provider/OPENAI/yep.py +50 -21
- webscout/Provider/OpenGPT.py +1 -1
- webscout/Provider/TTI/AiForce/README.md +159 -0
- webscout/Provider/TTI/FreeAIPlayground/README.md +99 -0
- webscout/Provider/TTI/ImgSys/README.md +174 -0
- webscout/Provider/TTI/MagicStudio/README.md +101 -0
- webscout/Provider/TTI/Nexra/README.md +155 -0
- webscout/Provider/TTI/PollinationsAI/README.md +146 -0
- webscout/Provider/TTI/README.md +128 -0
- webscout/Provider/TTI/aiarta/README.md +134 -0
- webscout/Provider/TTI/artbit/README.md +100 -0
- webscout/Provider/TTI/fastflux/README.md +129 -0
- webscout/Provider/TTI/huggingface/README.md +114 -0
- webscout/Provider/TTI/piclumen/README.md +161 -0
- webscout/Provider/TTI/pixelmuse/README.md +79 -0
- webscout/Provider/TTI/talkai/README.md +139 -0
- webscout/Provider/TTS/README.md +192 -0
- webscout/Provider/TTS/__init__.py +2 -1
- webscout/Provider/TTS/speechma.py +500 -100
- webscout/Provider/TTS/sthir.py +94 -0
- webscout/Provider/TeachAnything.py +3 -7
- webscout/Provider/TextPollinationsAI.py +4 -2
- webscout/Provider/{aimathgpt.py → UNFINISHED/ChatHub.py} +88 -68
- webscout/Provider/UNFINISHED/liner_api_request.py +263 -0
- webscout/Provider/UNFINISHED/oivscode.py +351 -0
- webscout/Provider/UNFINISHED/test_lmarena.py +119 -0
- webscout/Provider/Writecream.py +11 -2
- webscout/Provider/__init__.py +8 -14
- webscout/Provider/ai4chat.py +4 -58
- webscout/Provider/asksteve.py +17 -9
- webscout/Provider/cerebras.py +3 -1
- webscout/Provider/koala.py +170 -268
- webscout/Provider/llmchat.py +3 -0
- webscout/Provider/lmarena.py +198 -0
- webscout/Provider/meta.py +7 -4
- webscout/Provider/samurai.py +223 -0
- webscout/Provider/scira_chat.py +4 -2
- webscout/Provider/typefully.py +23 -151
- webscout/__init__.py +4 -2
- webscout/cli.py +3 -28
- webscout/conversation.py +35 -35
- webscout/litagent/Readme.md +276 -0
- webscout/scout/README.md +402 -0
- webscout/swiftcli/Readme.md +323 -0
- webscout/version.py +1 -1
- webscout/webscout_search.py +2 -182
- webscout/webscout_search_async.py +1 -179
- webscout/zeroart/README.md +89 -0
- webscout/zeroart/__init__.py +134 -54
- webscout/zeroart/base.py +19 -13
- webscout/zeroart/effects.py +101 -99
- webscout/zeroart/fonts.py +1239 -816
- {webscout-8.2.6.dist-info → webscout-8.2.8.dist-info}/METADATA +116 -74
- {webscout-8.2.6.dist-info → webscout-8.2.8.dist-info}/RECORD +130 -103
- {webscout-8.2.6.dist-info → webscout-8.2.8.dist-info}/WHEEL +1 -1
- webscout-8.2.8.dist-info/entry_points.txt +3 -0
- webscout-8.2.8.dist-info/top_level.txt +1 -0
- webscout/Provider/AISEARCH/ISou.py +0 -256
- webscout/Provider/ElectronHub.py +0 -773
- webscout/Provider/Free2GPT.py +0 -241
- webscout/Provider/GPTWeb.py +0 -249
- webscout/Provider/bagoodex.py +0 -145
- webscout/Provider/geminiprorealtime.py +0 -160
- webscout/scout/core.py +0 -881
- webscout-8.2.6.dist-info/entry_points.txt +0 -3
- webscout-8.2.6.dist-info/top_level.txt +0 -2
- webstoken/__init__.py +0 -30
- webstoken/classifier.py +0 -189
- webstoken/keywords.py +0 -216
- webstoken/language.py +0 -128
- webstoken/ner.py +0 -164
- webstoken/normalizer.py +0 -35
- webstoken/processor.py +0 -77
- webstoken/sentiment.py +0 -206
- webstoken/stemmer.py +0 -73
- webstoken/tagger.py +0 -60
- webstoken/tokenizer.py +0 -158
- /webscout/Provider/{Youchat.py → UNFINISHED/Youchat.py} +0 -0
- {webscout-8.2.6.dist-info → webscout-8.2.8.dist-info}/licenses/LICENSE.md +0 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# 🎨 TalkaiImager - Fire AI Art Generator! 🔥
|
|
2
|
+
|
|
3
|
+
Yo fam! Welcome to TalkaiImager - your go-to provider for creating some absolutely fire AI art! 🎨
|
|
4
|
+
|
|
5
|
+
## 🚀 Features
|
|
6
|
+
|
|
7
|
+
- Both sync and async support for maximum flexibility 💪
|
|
8
|
+
- Fire error handling for smooth operation 🛡️
|
|
9
|
+
- Optional logging with cyberpunk vibes 🌟
|
|
10
|
+
- Dynamic user agents for stealth mode 🥷
|
|
11
|
+
- Proxy support for extra privacy 🔒
|
|
12
|
+
- Customizable timeouts and retries ⚙️
|
|
13
|
+
- Smart retry mechanism 🔄
|
|
14
|
+
|
|
15
|
+
## 💫 Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install webscout # All you need fam! 🔥
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 🎯 Usage
|
|
22
|
+
|
|
23
|
+
### 🔥 Sync Way (TalkaiImager)
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
from webscout import TalkaiImager
|
|
27
|
+
|
|
28
|
+
# Initialize with fire logging! 🚀
|
|
29
|
+
imager = TalkaiImager(logging=True)
|
|
30
|
+
|
|
31
|
+
# Generate a single image
|
|
32
|
+
images = imager.generate("Epic dragon breathing fire")
|
|
33
|
+
paths = imager.save(images)
|
|
34
|
+
print(paths) # ['epic_dragon_0.png']
|
|
35
|
+
|
|
36
|
+
# Generate multiple images with retries
|
|
37
|
+
images = imager.generate(
|
|
38
|
+
"Cyberpunk city at night",
|
|
39
|
+
amount=3,
|
|
40
|
+
max_retries=5,
|
|
41
|
+
retry_delay=3
|
|
42
|
+
)
|
|
43
|
+
paths = imager.save(images)
|
|
44
|
+
print(paths) # ['cyberpunk_city_0.png', 'cyberpunk_city_1.png', 'cyberpunk_city_2.png']
|
|
45
|
+
|
|
46
|
+
# Stealth mode (no logging)
|
|
47
|
+
quiet_imager = TalkaiImager(logging=False)
|
|
48
|
+
images = quiet_imager.generate("Secret art")
|
|
49
|
+
paths = quiet_imager.save(images)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### ⚡ Async Way (AsyncTalkaiImager)
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from webscout import AsyncTalkaiImager
|
|
56
|
+
import asyncio
|
|
57
|
+
|
|
58
|
+
async def generate_art():
|
|
59
|
+
# Initialize with fire logging! 🚀
|
|
60
|
+
imager = AsyncTalkaiImager(logging=True)
|
|
61
|
+
|
|
62
|
+
# Generate multiple images
|
|
63
|
+
images = await imager.generate(
|
|
64
|
+
"Epic dragon breathing fire",
|
|
65
|
+
amount=2,
|
|
66
|
+
max_retries=3,
|
|
67
|
+
retry_delay=5
|
|
68
|
+
)
|
|
69
|
+
paths = await imager.save(images)
|
|
70
|
+
print(paths) # ['epic_dragon_0.png', 'epic_dragon_1.png']
|
|
71
|
+
|
|
72
|
+
# Custom save location
|
|
73
|
+
images = await imager.generate("Cool art")
|
|
74
|
+
paths = await imager.save(images, dir="my_art", filenames_prefix="fire_")
|
|
75
|
+
|
|
76
|
+
# Run it!
|
|
77
|
+
asyncio.run(generate_art())
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### 🛠️ Advanced Usage
|
|
81
|
+
|
|
82
|
+
```python
|
|
83
|
+
# With proxy and custom timeout
|
|
84
|
+
imager = TalkaiImager(
|
|
85
|
+
timeout=120,
|
|
86
|
+
proxies={
|
|
87
|
+
'http': 'http://10.10.10.1:8000',
|
|
88
|
+
'https': 'http://10.10.10.1:8000'
|
|
89
|
+
},
|
|
90
|
+
logging=True
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
# Custom save options
|
|
94
|
+
images = imager.generate(
|
|
95
|
+
"Cool art",
|
|
96
|
+
max_retries=5,
|
|
97
|
+
retry_delay=3
|
|
98
|
+
)
|
|
99
|
+
paths = imager.save(
|
|
100
|
+
images,
|
|
101
|
+
name="masterpiece",
|
|
102
|
+
dir="my_art_folder",
|
|
103
|
+
filenames_prefix="fire_"
|
|
104
|
+
)
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## ⚡ Error Handling
|
|
108
|
+
|
|
109
|
+
We got your back with proper error handling:
|
|
110
|
+
|
|
111
|
+
```python
|
|
112
|
+
try:
|
|
113
|
+
images = imager.generate("Cool art")
|
|
114
|
+
paths = imager.save(images)
|
|
115
|
+
except exceptions.APIConnectionError as e:
|
|
116
|
+
print("Connection issues! Check your internet! 🌐")
|
|
117
|
+
except exceptions.InvalidResponseError as e:
|
|
118
|
+
print("Invalid response from API! 🚫")
|
|
119
|
+
except exceptions.FailedToGenerateResponseError as e:
|
|
120
|
+
print("Failed to generate image! 😢")
|
|
121
|
+
except Exception as e:
|
|
122
|
+
print(f"Something went wrong fam: {e} 😢")
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## 🔒 Security Tips
|
|
126
|
+
|
|
127
|
+
- Use proxies for extra privacy 🛡️
|
|
128
|
+
- Enable stealth mode (logging=False) for sensitive ops 🤫
|
|
129
|
+
- Don't expose sensitive info in prompts 🔐
|
|
130
|
+
- Use custom timeouts for stability 🕒
|
|
131
|
+
|
|
132
|
+
## 🎛️ Parameters Guide
|
|
133
|
+
|
|
134
|
+
- `amount`: Number of images to generate (default: 1)
|
|
135
|
+
- `max_retries`: Number of retry attempts (default: 3)
|
|
136
|
+
- `retry_delay`: Seconds between retries (default: 5)
|
|
137
|
+
- `timeout`: Request timeout in seconds (default: 60)
|
|
138
|
+
|
|
139
|
+
Made with 💖 by the HelpingAI Team! Keep it real fam! 🔥👑
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# 🎙️ Webscout Text-to-Speech (TTS) Providers
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Webscout's TTS Providers offer a versatile and powerful text-to-speech conversion library with support for multiple providers and advanced features.
|
|
6
|
+
|
|
7
|
+
## 🌟 Features
|
|
8
|
+
|
|
9
|
+
- **Multiple TTS Providers**: Support for various text-to-speech services
|
|
10
|
+
- **Concurrent Audio Generation**: Efficiently process long texts
|
|
11
|
+
- **Flexible Voice Selection**: Choose from a wide range of voices
|
|
12
|
+
- **Robust Error Handling**: Comprehensive logging and error management
|
|
13
|
+
- **Temporary File Management**: Automatically manages temporary audio files
|
|
14
|
+
- **Cross-Platform Compatibility**: Works seamlessly across different environments
|
|
15
|
+
- **Custom Save Locations**: Save audio files to specific destinations
|
|
16
|
+
- **Audio Streaming**: Stream audio data in chunks for real-time applications
|
|
17
|
+
|
|
18
|
+
## 📦 Supported TTS Providers
|
|
19
|
+
|
|
20
|
+
1. **ElevenlabsTTS**
|
|
21
|
+
2. **GesseritTTS**
|
|
22
|
+
3. **MurfAITTS**
|
|
23
|
+
4. **ParlerTTS**
|
|
24
|
+
5. **DeepgramTTS**
|
|
25
|
+
6. **StreamElementsTTS**
|
|
26
|
+
7. **SpeechMaTTS**
|
|
27
|
+
8. **SthirTTS**
|
|
28
|
+
## 🚀 Installation
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install webscout
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## 💻 Basic Usage
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from webscout.Provider.TTS import ElevenlabsTTS
|
|
38
|
+
|
|
39
|
+
# Initialize the TTS provider
|
|
40
|
+
tts = ElevenlabsTTS()
|
|
41
|
+
|
|
42
|
+
# Generate speech from text
|
|
43
|
+
text = "Hello, this is a test of text-to-speech conversion."
|
|
44
|
+
audio_file = tts.tts(text, voice="Brian")
|
|
45
|
+
|
|
46
|
+
# Save the audio to a specific location
|
|
47
|
+
saved_path = tts.save_audio(audio_file, destination="my_speech.mp3")
|
|
48
|
+
print(f"Audio saved to: {saved_path}")
|
|
49
|
+
|
|
50
|
+
# Stream audio in chunks
|
|
51
|
+
for chunk in tts.stream_audio(text, voice="Brian"):
|
|
52
|
+
# Process each chunk (e.g., send to a websocket, write to a stream, etc.)
|
|
53
|
+
process_audio_chunk(chunk)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 🎛️ Advanced Configuration
|
|
57
|
+
|
|
58
|
+
### Voice Selection
|
|
59
|
+
|
|
60
|
+
Each TTS provider offers multiple voices:
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
# List available voices
|
|
64
|
+
print(tts.all_voices.keys())
|
|
65
|
+
|
|
66
|
+
# Select a specific voice
|
|
67
|
+
audio_file = tts.tts(text, voice="Alice")
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Verbose Logging
|
|
71
|
+
|
|
72
|
+
Enable detailed logging for debugging:
|
|
73
|
+
|
|
74
|
+
```python
|
|
75
|
+
audio_file = tts.tts(text, verbose=True)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## 🔧 Provider-Specific Details
|
|
79
|
+
|
|
80
|
+
### ElevenlabsTTS
|
|
81
|
+
|
|
82
|
+
- Supports multiple English voices
|
|
83
|
+
- Multilingual text-to-speech
|
|
84
|
+
|
|
85
|
+
### GesseritTTS
|
|
86
|
+
|
|
87
|
+
- Offers unique voice characteristics
|
|
88
|
+
- Supports voice description customization
|
|
89
|
+
|
|
90
|
+
### MurfAITTS
|
|
91
|
+
|
|
92
|
+
- Provides specific voice models
|
|
93
|
+
- Supports custom voice descriptions
|
|
94
|
+
|
|
95
|
+
### ParlerTTS
|
|
96
|
+
|
|
97
|
+
- Uses Gradio Client for TTS generation
|
|
98
|
+
- Supports large and small model variants
|
|
99
|
+
|
|
100
|
+
### DeepgramTTS
|
|
101
|
+
|
|
102
|
+
- Multiple voice options
|
|
103
|
+
- Advanced voice selection
|
|
104
|
+
|
|
105
|
+
### StreamElementsTTS
|
|
106
|
+
|
|
107
|
+
- Wide range of international voices
|
|
108
|
+
|
|
109
|
+
### SpeechMaTTS
|
|
110
|
+
|
|
111
|
+
- Multilingual voices (Ava, Emma, Andrew, Brian)
|
|
112
|
+
- Adjustable pitch and speech rate
|
|
113
|
+
- Fast audio generation
|
|
114
|
+
|
|
115
|
+
## 🛡️ Error Handling
|
|
116
|
+
|
|
117
|
+
```python
|
|
118
|
+
try:
|
|
119
|
+
audio_file = tts.tts(text)
|
|
120
|
+
except exceptions.FailedToGenerateResponseError as e:
|
|
121
|
+
print(f"TTS generation failed: {e}")
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## 🌐 Proxy Support
|
|
125
|
+
|
|
126
|
+
```python
|
|
127
|
+
# Use with proxy
|
|
128
|
+
tts = ElevenlabsTTS(proxies={
|
|
129
|
+
'http': 'http://proxy.example.com:8080',
|
|
130
|
+
'https': 'https://proxy.example.com:8080'
|
|
131
|
+
})
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## 💾 Custom Audio Saving
|
|
135
|
+
|
|
136
|
+
Save generated audio to a specific location:
|
|
137
|
+
|
|
138
|
+
```python
|
|
139
|
+
# Generate speech
|
|
140
|
+
audio_file = tts.tts(text, voice="Brian")
|
|
141
|
+
|
|
142
|
+
# Save to a specific file
|
|
143
|
+
tts.save_audio(audio_file, destination="path/to/output.mp3")
|
|
144
|
+
|
|
145
|
+
# Save to a specific directory with default filename
|
|
146
|
+
tts.save_audio(audio_file, destination="path/to/directory/")
|
|
147
|
+
|
|
148
|
+
# Save with default location (current directory with timestamp)
|
|
149
|
+
saved_path = tts.save_audio(audio_file)
|
|
150
|
+
print(f"Saved to: {saved_path}")
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## 📼 Audio Streaming
|
|
154
|
+
|
|
155
|
+
Stream audio data in chunks for real-time applications:
|
|
156
|
+
|
|
157
|
+
```python
|
|
158
|
+
# Stream audio in chunks
|
|
159
|
+
for chunk in tts.stream_audio(text, voice="Brian", chunk_size=2048):
|
|
160
|
+
# Example: Send to a websocket
|
|
161
|
+
websocket.send(chunk)
|
|
162
|
+
|
|
163
|
+
# Example: Write to an audio stream
|
|
164
|
+
audio_stream.write(chunk)
|
|
165
|
+
|
|
166
|
+
# Example: Process in real-time
|
|
167
|
+
process_audio_data(chunk)
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## ⏱️ Async Support
|
|
171
|
+
|
|
172
|
+
Use the async versions for non-blocking operations:
|
|
173
|
+
|
|
174
|
+
```python
|
|
175
|
+
from webscout.Provider.TTS import AsyncElevenlabsTTS
|
|
176
|
+
import asyncio
|
|
177
|
+
|
|
178
|
+
async def main():
|
|
179
|
+
tts = AsyncElevenlabsTTS()
|
|
180
|
+
|
|
181
|
+
# Generate speech
|
|
182
|
+
audio_file = await tts.tts(text, voice="Brian")
|
|
183
|
+
|
|
184
|
+
# Save to a specific location
|
|
185
|
+
saved_path = await tts.save_audio(audio_file, destination="output.mp3")
|
|
186
|
+
|
|
187
|
+
# Stream audio
|
|
188
|
+
async for chunk in tts.stream_audio(text, voice="Brian"):
|
|
189
|
+
await process_chunk(chunk)
|
|
190
|
+
|
|
191
|
+
asyncio.run(main())
|
|
192
|
+
```
|