File size: 1,855 Bytes
b2cc208
 
 
 
e0b8484
b2cc208
 
 
 
e0b8484
b2cc208
 
 
 
e0b8484
b2cc208
 
 
 
e0b8484
b2cc208
 
 
 
e0b8484
b2cc208
 
 
 
e0b8484
b2cc208
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
streamlit
# 🌟 Streamlit shines - "st.title('Hello, World!')" kicks off your app with flair!
# 🎨 Paint the UI - "st.button('Click me!')" adds interactive magic buttons!
# πŸ“Š Graph it up - "st.line_chart(data)" turns numbers into visual superpowers!

asyncio
# ⏳ Async awaits - "await asyncio.sleep(1)" pauses without blocking your vibe!
# πŸš€ Task master - "asyncio.create_task(func())" launches parallel action heroes!
# πŸ”„ Loop de loop - "asyncio.run(main())" runs your async empire smoothly!

websockets
# 🌐 Web chat zap - "async with websockets.connect('ws://...')" links chat galaxies!
# πŸ“‘ Send it fast - "await websocket.send('Hi!')" beams messages at lightspeed!
# 🎧 Listen up - "msg = await websocket.recv()" catches incoming chatter!

edge-tts
# πŸŽ™οΈ Voice boom - "await edge_tts.Communicate('Hello', 'en-US-Aria').save('out.mp3')" speaks your mind!
# πŸ”Š Tune tweak - "edge_tts.Communicate('Yo', 'en-GB-Ryan', rate='+10%')" speeds up the groove!
# πŸ—£οΈ Echo star - "await communicate.save('file.mp3')" saves your vocal superpower!

audio-recorder-streamlit
# 🎀 Mic drop - "audio = audio_recorder()" grabs your voice with style!
# πŸ”‰ Sound bite - "if audio: st.audio(audio)" plays back your epic words!
# πŸ—¨οΈ Chat blast - "text = process(audio); st.write(text)" turns speech to text magic!

nest-asyncio
# πŸ”„ Loop savior - "nest_asyncio.apply()" fixes nested async woes with a wink!
# πŸš€ Run again - "asyncio.run(main())" now works inside Streamlit’s loop party!
# ⏲️ Time bender - "nest_asyncio.apply(); await asyncio.sleep(2)" bends time effortlessly!

pillow  # PIL library
# πŸ–ΌοΈ Pic power - "img = Image.open('cool.png')" unleashes image wizardry!
# 🎨 Color swap - "img.convert('RGB')" transforms visuals like a pro!
# πŸ’Ύ Save snap - "img.save('new.jpg')" locks your art in pixel glory!