by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Purto
    @PurtoX_twitter

    Hey @Joytanapp I keep getting this error message when I try to make an audiobook:

    Error occurs while creating audiobook. System stops with exception 'Decoding failed. ffmpeg returned error code: -5

    Output from ffmpeg/avlib:

    b'dyld: Library not loaded: /usr/local/Cellar/ffmpeg/3.3.2/lib/libavdevice.57.dylib\n Referenced from: /Applications/Joytan.app/Contents/MacOS/ffmpeg\n Reason: image not found\n''

    Any help would be greatly appreciated.
    Kohki Mametani
    @kokimame
    I have to say I'm kinda busy right now in school. But let's see what I can do for my best.
    I think you have ffmpeg but maybe some libraries are missing.
    Kohki Mametani
    @kokimame

    Type ffmpeg in my terminal returns sth like this

    ffmpeg version 3.3.2
      libavutil      55. 58.100 / 55. 58.100
      libavcodec     57. 89.100 / 57. 89.100
      libavformat    57. 71.100 / 57. 71.100
      libavdevice    57.  6.100 / 57.  6.100
      libavfilter     6. 82.100 /  6. 82.100
      libavresample   3.  5.  0 /  3.  5.  0
      libswscale      4.  6.100 /  4.  6.100
      libswresample   2.  7.100 /  2.  7.100
      libpostproc    54.  5.100 / 54.  5.100

    Maybe missing the link to libavdevice?
    Same kind of issue: https://superuser.com/questions/877510/ffmpeg-dyld-library-not-loaded-usr-local-lib-libmp3lame-0-dylib/877511

    brew install libav might work.
    Purto
    @PurtoX_twitter
    Hey friend, please don't stress. I totally understand as I am a student too.
    I have no idea how to code and I merely came here to solve a very complicated issue, so I can give it a try but if you have any easier solutions, please let me know :)
    Kohki Mametani
    @kokimame
    Haha, I somehow assumed you're a developer because the way you report a bug looked like theirs.
    Luckily, the problem seems not so complicated.
    I'll upload a simple workaround whenever it comes up in my mind.
    For me, it's a dream that someone in the world is using my app. So, I'm very happy to help you, but I have to finish writing a paper until the end of Oct...
    Kohki Mametani
    @kokimame
    Keep in mind that you can make MP3 audiobooks and PDF textbook with the app, but not a video.
    Also, it still has several bugs. Sometimes, the app becomes too slow unpredictably although it works fine at least for me to make YouTube videos. Please be patient!
    Kohki Mametani
    @kokimame
    Actually, I didn't expect this to happen.
    I tried to avoid making end users install developer tools, but there's something wrong ;(
    At this point, you may have to reinstall ffmpeg by yourself.
    1. Open the black screen, called Terminal (Spotlight search -> Terminal)
    2. Paste the line in Terminal prompt and install homebrew : https://brew.sh/
    3. Again in Terminal type the lines one by one.
      brew uninstall ffmpeg
      brew install faac lame xvid
      brew install ffmpeg
      if not still working
      brew install libav
    Purto
    @PurtoX_twitter
    Ok awesome thanks man :)
    Maksim0001
    @Maksim0001
    Снимок экрана 2019-01-12 в 17.13.37.png
    how to solve problem ?
    Kohki Mametani
    @kokimame
    @Maksim0001
    Hi, thank you for checking my app.
    1. Open the black screen, called Terminal (Spotlight search -> Terminal)
    2. Type this command. This should open a new finder window.
      open /Applications/Joytan.app/Contents/MacOS
    3. Download missing programs from my Google Drive and paste them in the finder window.
      https://drive.google.com/open?id=1uQzUrWMs21SWMBdCY_30i2HtBM-lc2_K
    Maksim0001
    @Maksim0001
    Снимок экрана 2019-01-13 в 14.43.32.png
    have new problem after that
    Kohki Mametani
    @kokimame

    @Maksim0001

    The quickest way should be running this command from the terminal.
    You need to know your password for the security privilege.

    sudo /Applications/Joytan.app/Contents/MacOS/Joytan

    This allows my app to write files (MP3 audio) and do networking etc.
    Permissions should be granted automatically, but there's something wrong in a casual download.
    Sorry for the inconvenience and thank you for bug reports. I will work on this.

    Related topics on wikiHow

    Maksim0001
    @Maksim0001
    Thank you bro ) but that still not function )
    Kohki Mametani
    @kokimame
    @Maksim0001 Hmm... I'll give it another shot . Does the textbook feature (making pdf files, downloading images) works?
    Maksim0001
    @Maksim0001
    yes
    lyp-bobi
    @lyp-bobi
    hello, @kokimame , I'm currently using joytan on windows. However, I could not find the Amazon Polly option in the text-to-speech service. Is Polly no longer supported or have I missed something?
    Kohki Mametani
    @kokimame
    HI @lyp-bobi. Since Amazon Polly is an external service provided by Amazon, you need to set up your environment by yourself. I wrote a tutorial a year ago for the process. https://kokimame.github.io/joytan/tutorial.html
    lyp-bobi
    @lyp-bobi
    @kokimame Yep I followed that tutorial and configured the credentials already, however there's still no Polly in the option. Does that mean that I've not connected to Polly successfully so Joytan won't show this option for me?
    Kohki Mametani
    @kokimame
    I checked the Windows version (I usually work with Ubuntu) and alas Amazon Polly did not appear in the production app nor in the development version.
    But I found out that my computer clock is behind the realtime and it was causing an authentication error regarding connecting with Polly. So after fixing the system clock, the Polly option appeared.
    Kohki Mametani
    @kokimame
    @lyp-bobi That might not be related but you can identify your issue by running this script
    import inspect
    
    import boto3
    from contextlib import closing
    
    polly = boto3.client('polly')
    
    print(polly.describe_voices()['Voices'][0].keys())
    
    _voice_list = [
        (item['Name'], "%s (%s)" % (item['Name'], item['LanguageName']))
         for item in sorted(polly.describe_voices()['Voices'], key=lambda x: x['LanguageCode'])
    ]
    
    for item in _voice_list:
        print(item)
    print("Total: %d voices" % len(polly.describe_voices()['Voices']))
    
    print(inspect.signature(polly.synthesize_speech))
    #
    # response = polly.synthesize_speech(VoiceId='Kendra',
    #                                    Text='<speak>&</speak>',
    #                                    TextType='ssml',
    #                                    OutputFormat='mp3')
    #
    #
    # with closing(response['AudioStream']) as stream:
    #     with open('test_polly.mp3', 'wb') as f:
    #         f.write(stream.read())
    lyp-bobi
    @lyp-bobi
    @kokimame oh, so maybe the fastest way for me is just using my ubuntu VM. Thank you very much. :D
    Kohki Mametani
    @kokimame

    @lyp-bobi Haha probably yes. There is also a new pre-release available only for Ubuntu. https://github.com/kokimame/joytan/releases/tag/latest-draft-ubuntu

    Was the script working? If you get an error, let me know. Even though there is an issue regarding ffmpeg, I confirmed that Polly is working in Windows at least in my environment. I am here as long as you need help :) or on our Slack. http://slack-invite.joytan.pub/
    If you have a list of vocabulary or sentences or memrise courses, I can make an audio/textbook for free. If it's Japanese, I can provide native pronunciation.

    lyp-bobi
    @lyp-bobi
    '
    '>>>print(polly.describe_voices()['Voices'][0].keys())
    Traceback (most recent call last):
    File "<input>", line 1, in <module>
    File "D:\ProgramData\Anaconda3\envs\env\lib\site-packages\botocore\client.py", line 276, in _api_call
    return self._make_api_call(operation_name, kwargs)
    File "D:\ProgramData\Anaconda3\envs\env\lib\site-packages\botocore\client.py", line 586, in _make_api_call
    raise error_class(parsed_response, operation_name)
    botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DescribeVoices operation: The security token included in the request is invalid.
    '
    I believe this is caused by some issues with the credential token :P or is it related to the region setting?
    lyp-bobi
    @lyp-bobi
    I fixed this problem :P it's my own fault... :P
    Kohki Mametani
    @kokimame
    @lyp-bobi I missed the notifications. Good to know that's now working (I hope). I am more active on our Slack channel. Feel free to join us if you need some help. http://slack-invite.joytan.pub/
    wulimac
    @wulimac
    hi,is anybody online?
    I have a question about Joytan.
    I can successfully make a audiobook now,and it also generate a lrc file.
    And my quetion is how to make a "Videobook" just like JoytanApp in Youtube.
    Videobook=audio+words+definition
    Kohki Mametani
    @kokimame
    @wulimac Hi, glad to hear you could make an audiobook :D
    As described in the README, video-making feature is not included in the current version.
    NOTE: Videos were created from two resources. One is audiobooks which were created with Joytan, the other is image clips which were created separately from the app. Video-making feature is not included in the current version of Joytan.