Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
@@ -229,7 +229,7 @@ async def audio_editor(event):
|
|
229 |
audio = Fusion.effectSlowed(audio, speedMultiplier=1.2)
|
230 |
await event.reply("`Following effect added to your audio file...`")
|
231 |
|
232 |
-
elif event.raw_text.startswith('/
|
233 |
# Parse parameters and apply the effect
|
234 |
# Example usage: /effect8D 100 5 10000 6
|
235 |
parameters = event.raw_text.split()[1:]
|
@@ -246,6 +246,7 @@ async def audio_editor(event):
|
|
246 |
|
247 |
elif event.raw_text.startswith('/save'):
|
248 |
# Parse parameters and save the modified audio
|
|
|
249 |
# Example usage: /save outputFileName
|
250 |
parameters = event.raw_text.split()[1:]
|
251 |
output_file_name = parameters[0]
|
@@ -253,12 +254,13 @@ async def audio_editor(event):
|
|
253 |
|
254 |
# Send the modified audio file to the user
|
255 |
await client.send_file(event.chat_id, output_file_path, caption=f'Modified audio: {output_file_name}.mp3')
|
256 |
-
|
257 |
# Clean up the temporary files
|
258 |
os.remove(output_file_path)
|
259 |
|
260 |
elif event.raw_text.startswith('/delete'):
|
261 |
os.remove(file_path)
|
|
|
262 |
|
263 |
async def initiation():
|
264 |
await client.send_message(-1001662130485, "**Hugging is Running.**", buttons=[(Button.url("Execal", "https://t.me/execal"),)],)
|
|
|
229 |
audio = Fusion.effectSlowed(audio, speedMultiplier=1.2)
|
230 |
await event.reply("`Following effect added to your audio file...`")
|
231 |
|
232 |
+
elif event.raw_text.startswith('/effect8d'):
|
233 |
# Parse parameters and apply the effect
|
234 |
# Example usage: /effect8D 100 5 10000 6
|
235 |
parameters = event.raw_text.split()[1:]
|
|
|
246 |
|
247 |
elif event.raw_text.startswith('/save'):
|
248 |
# Parse parameters and save the modified audio
|
249 |
+
msg = await event.reply("`Uploading...`")
|
250 |
# Example usage: /save outputFileName
|
251 |
parameters = event.raw_text.split()[1:]
|
252 |
output_file_name = parameters[0]
|
|
|
254 |
|
255 |
# Send the modified audio file to the user
|
256 |
await client.send_file(event.chat_id, output_file_path, caption=f'Modified audio: {output_file_name}.mp3')
|
257 |
+
await msg.delete()
|
258 |
# Clean up the temporary files
|
259 |
os.remove(output_file_path)
|
260 |
|
261 |
elif event.raw_text.startswith('/delete'):
|
262 |
os.remove(file_path)
|
263 |
+
msg = await event.reply("`Removed saved audio...`")
|
264 |
|
265 |
async def initiation():
|
266 |
await client.send_message(-1001662130485, "**Hugging is Running.**", buttons=[(Button.url("Execal", "https://t.me/execal"),)],)
|