AudioBooks Extension

Ciao a tutti,
today an extension to listen Audiobooks from Librivox database with more 45000 free public domain books.

GetBookList
First perform a search in the database to find a book list using one of these:
id: the unique book id, if we know it.
title: the book title or a part of it
author: the author name or part of it
genre: the genre book

After the search there is this result

responseCode: 200 is the correct response
response: the complete json response
id: a list with all the books id found
title: a list with all the books titles found
description: a list with all the books descriptions found
language: a list with all the books languages found
rss:a list with all the books rss found (chapters,times)
urlForCover: a list with all the books url cover found
time: a list with all the books time (total duration) found
author: a list with all the books authors found
message: if there is an error

To get the book chapters, and the cover image I use:

GetBook

rss: I use one rss previously found with GotBookList
image: I use one urlForCover previously found with GotBookList

After the GetBook there is this result

responseCode: 200 is the correct response
response: the complete json response
chapter: a list with all the book chapters
duration: a list with every chapter duration
chapterUrl: a list with the chapter to listen
cover: the book cover image
message: if there is an error

Extension:
AudioBooks.aix (22.4 KB)
Sample:
AudioBooksSample.aia (124.1 KB)

How the sample works:

I hope You find useful
Ciao
Marco

12 Likes

epic

1 Like

Hi Marco, how do we make the buttons larger?

Is anyone here to help pls?

Marco's example aia does not appear to use very many buttons. It mainly uses ListViews, Labels etc.

The only Buttons I could find are bt_StopSearch and **


**

There might be more. Let us know if you find more. Chapters ???

Also, when we search for books can we use text to speech so it tells the results?, also when we open chapters. Thanks for helping with making the buttons bigger.

Yes if you add a Button and this code you can listen to the list of Titles


This example works for Title lists; to use with Author list use the Author global instead of the Title in the code.

Sure, add another Button and similar code for Chapters using the global Chapter probably.

Thanks alot!, will ask question if i have any thing else

Wait steve, where do we place the button so that when we search for the book it will read the results?

Anywhere you want. I placed it at the top of the Screen
button

so it will always be available. :wink:

Also, for school reasons can you explain how the app works?

The extension links into the Librivox api
https://librivox.org/

How the website works Help | LibriVox Help | free public domain audiobooks

The extension provides links to the chapterUrl, cover and message.

The App Inventor code uses Listviews to display the results.

Shorter explanation: Magic :wink:

Here are some resources to help you learn to use the AI2 tools and understand how they work.

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.

There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps

How to do a lot of basic things with App Inventor are described here: How do you...? .

Also look here App inventor español. Offline. Tutorial. Ejemplos. Instalación. Códigos. Juegos. Curso gratis de App inventor. and here Tutorial Index | imagnity for more tutorials including Imagnity.com List Tutorial, Mirrored - @Saj

Learn about components Component Reference
and visit the Library The MIT App Inventor Library: Documentation & Support Help>Library on the MENU

1 Like

tysm steve

1 Like