Closed iconoclasthero closed 10 months ago
I tried to use "East US" for my region and I got this [screen] output: https://pastebin.com/XAhf6zEc but there's nary a .mp3 to be found in /cache
I tried to use "East US" for my region and I got this [screen] output: https://pastebin.com/XAhf6zEc
but there's nary a .mp3 to be found in /cache
@iconoclasthero Thanks for trying. The log looks good. You have added the --preview option so the tool will not actually send out network requests to azure. Just remove the --preview option and try again.
For the region question, I believe it was selected/defined when you were creating the azure cognitive service. It is on the same page as where you can find your service key.
Ok, i spent some time looking for it and you should probably update this on the readme...
From https://portal.azure.com/#home
Go to "Resource Groups"
[If you don't have an RG, create one]
Go to your RG.
You'll see your location, mine is "East US"—this is not the region id.
At the top right of the "Essentials" group, there's a "JSON view"; click that.
Line 5 has my location as "eastus"
Use that for the export command.
NB: If there's this json available, why not make a function on e2a so that it can just read the .json? It would be a set format for everyone, has the subscription key and the region id in it, and all one would have to do is set the location of the .json for whatever you use to call e2a.
{
"id": "/subscriptions/[-redacted-]/resourceGroups/[-redacted-]",
"name": "[-redacted-]",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus",
"properties": {
"provisioningState": "Succeeded"
}
}
Now onto the actual work product: https://pastebin.com/HZJZn66G It didn't work either. I got a bunch of .mp3 files that are a little more than 1 kb. I need to look at the epub, but it should be fine, i converted it to .txt and ran it through piper already.
I use foliate to quickly look at epubs (calibre is a whole tangled mess) and it's fine so I'm not sure why it's not getting the audio files back from Azure. FWIW: Ubuntu 22.04/Chrome/python3.10.12
Same thing with another audiobook. :(
Ok, i spent some time looking for it and you should probably update this on the readme...
From https://portal.azure.com/#home
Go to "Resource Groups"
[If you don't have an RG, create one]
Go to your RG.
You'll see your location, mine is "East US"—this is not the region id.
At the top right of the "Essentials" group, there's a "JSON view"; click that.
Line 5 has my location as "eastus"
Use that for the export command.
NB: If there's this json available, why not make a function on e2a so that it can just read the .json? It would be a set format for everyone, has the subscription key and the region id in it, and all one would have to do is set the location of the .json for whatever you use to call e2a.
{ "id": "/subscriptions/[-redacted-]/resourceGroups/[-redacted-]", "name": "[-redacted-]", "type": "Microsoft.Resources/resourceGroups", "location": "eastus", "properties": { "provisioningState": "Succeeded" } }
Thanks for pointing out. Azure is definitely difficult to use for me and many others. I really should document more on this.
Same thing with another audiobook. :(
Could you try the epub file in the example folder of this repo? It should work well. Not sure if it's due to a epub file reason or something else. I didn't catch any errors in your log. The epub was parsed correctly. Really interested in this issue. The only thing I can suspect is that each chapter has been split into many chunks. Maybe something wrong when combining them into one file. But I didn't see anything wrong in the log.
ok, i'll give that a whirl. Here's the wrapper I've been working on... https://pastebin.com/UYssjzrq
The .json needs to be in ~/.file/e2a, blah blah blah, but it parses right. Also, I tired to look for a download link for the json, but i couldn't find it. i had to copy and paste it.
https://pastebin.com/SBk6aAns same result with crusoe.
I'm itching to see what results I get.
FWIW, the book I'm working on, Schmitz, Henry L. Stimson: The First Wiseman
i'm going to be on the off-topic ABS discord for a while if you wanna work on this.
@iconoclasthero OK. See you there then. Just pushed a quick fix to catch the errors. See https://github.com/p0n1/epub_to_audiobook/commit/9ab7db06f3c487027e310ea848e475af9be391a2. Will go back after a few hours.
Ahh. Another strange thing I found in the above log. The script was completed whin one minute. I have never seen Azure TTS being so fast. Maybe the request to Azure is failed but the script didn't catch that for some reason. I have just pushed the new fix to catch requests errors.
This issue pinged me. Was that someone doing spamming or was that on purpose? I have a bad feeling about this, honestly, with all those pastebin links that one would set up for me to click and deliver malware through a browser exploit, and your user names sounding pretty made up. Anyway, whatever. Would be nice to know what happened, though, if you are not bots :)
This issue pinged me. Was that someone doing spamming or was that on purpose? I have a bad feeling about this, honestly, with all those pastebin links that one would set up for me to click and deliver malware through a browser exploit, and your user names sounding pretty made up. Anyway, whatever. Would be nice to know what happened, though, if you are not bots :)
Hi. Some annoying crypto airdrop scams are using GitHub for their spamming. I have deleted the spam message in this repo. But you may also come across similar ones on other repos. Don't click any link related to the crypto airdrop in the GitHub notification email. Stay safe.
Awww thanks for the quick and kind response. Yeah, it’s been pretty bad lately. Thanks again :) Also, cool project BTW!
On Wed 3. Jan 2024 at 17:55, p0n1 @.***> wrote:
This issue pinged me. Was that someone doing spamming or was that on purpose? I have a bad feeling about this, honestly, with all those pastebin links that one would set up for me to click and deliver malware through a browser exploit, and your user names sounding pretty made up. Anyway, whatever. Would be nice to know what happened, though, if you are not bots :)
Hi. Some annoying crypto airdrop scams are using GitHub for their spamming. I have deleted the spam message in this repo. But you may also come across similar ones on other repos. Don't click any link related to the crypto airdrop in the GitHub notification email. Stay safe.
— Reply to this email directly, view it on GitHub https://github.com/p0n1/epub_to_audiobook/issues/12#issuecomment-1875676409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKF4OJXNT7CBX5P6IPMSE3YMWEOVAVCNFSM6AAAAAA7GSBJE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVGY3TMNBQHE . You are receiving this because you commented.Message ID: @.***>
Can you explain a little more how the Azure region code is obtained? This isn't clear at all.