Update main.py
Browse files
main.py
CHANGED
|
@@ -850,7 +850,7 @@ def speak_notes(notes_id):
|
|
| 850 |
|
| 851 |
# --- Save Audio to Supabase Storage ---
|
| 852 |
# Naming convention: users/{user_id}/notes_audio/{notes_id}.mp3
|
| 853 |
-
bucket_name = '
|
| 854 |
destination_path = f'users/{user.id}/{notes_id}.mp3'
|
| 855 |
content_type = 'audio/mpeg'
|
| 856 |
|
|
|
|
| 850 |
|
| 851 |
# --- Save Audio to Supabase Storage ---
|
| 852 |
# Naming convention: users/{user_id}/notes_audio/{notes_id}.mp3
|
| 853 |
+
bucket_name = 'notes-audio' # Ensure this bucket exists in Supabase Storage
|
| 854 |
destination_path = f'users/{user.id}/{notes_id}.mp3'
|
| 855 |
content_type = 'audio/mpeg'
|
| 856 |
|