Order Book by Voice
This article necessitates a preliminary introduction as it builds upon the foundation laid in preceding articles, serving as a logical culmination of their concepts. In the following content, we will delve into the intricacies of utilizing code to engage with ChatGPT through vocal commands for the purpose of ordering books. ChatGPT, in response to your orders, will then proceed to generate the requested books. However, before delving into the specifics of this current article, it is imperative to provide you with insights gleaned from our prior articles. These antecedent pieces elucidate the path leading to our current state.
To begin, I would like to direct your attention to a previous article authored by me. In that piece, we explored the art of conversing with ChatGPT, elucidating the methodology for engaging in voice-driven interactions. This article comprehensively outlines the process of posing questions verbally to ChatGPT, which, in turn, furnishes articulate responses.
In a prior article, we discussed the development of a Book Generator tailored for ChatGPT. While our current solution eschews the use of XML in favor of text files, the underlying principles remain consistent. Much like placing an order for your favorite items at a McDonald's restaurant, we continue to employ a book engine that processes orders to fulfill the generation of books.
In a separate article, we discussed the process of obtaining images from ChatGPT using straightforward commands. Detailed code for this functionality is readily accessible for exploration.
In a previous article, we explored the concept of augmenting human intelligence through the integration of ChatGPT. Concerns have arisen among individuals who fear that automated content generation may undermine human creativity. However, I firmly believe that it has the potential not only to enhance human innovation and creativity but also to bolster human intelligence. This is because the additional "intelligence" provided by ChatGPT can serve as a source of inspiration that ignites and amplifies human intellect.
Drawing from the insights shared in prior articles, along with the content presented in this piece regarding the voice-activated ordering of books at Book Creation Terminals, it becomes evident how the gaming industry could substantially leverage ChatGPT. By integrating ChatGPT, computer characters can attain unprecedented levels of intelligence, rendering them highly autonomous. Moreover, in-game conversations can trigger multifaceted layers of intelligence and introduce an array of variations.
The voice-activated book ordering concept easily lends itself to the translation of other commands, thereby unveiling a whole new realm of possibilities.
Lastly, let us not overlook the culmination of knowledge presented in the four preceding articles on the Book Factory, each building upon the other in chronological order:
After establishing the foundation leading up to the current article, let us now delve into its core content. Essentially, the focus of this article is the remarkable capability to procure books through a simple interaction with ChatGPT. By merely specifying the book's topic, the desired quantity, the number of chapters per book, and the inclusion of images, you can initiate this process with a command similar to the following:
"I want to have 3 books about the Scrum Master in complex organizations and I want to have 18 chapters and I want to have images."
Or
"Give me 3 books about the Scrum Master in complex organizations, with 18 chapters and Images"
...and probably some more similar orders all resulting in the following string:
"<topic> <number of books> <number of chapters> <number of books per topic> <Images>"
Which looks like:
"Scrum Master in complex organizations" 3 18 1 true
You could of course also say "no images" and all above will be the same but in the end the true will be false.
And when fed to the computer it will generate the books because it is the same command given to the already existing Book Generator in the previous article:
领英推荐
The sole addition here is the incorporation of voice functionality, and it's worth noting that this interaction is bidirectional. As a user, you can communicate verbally with ChatGPT, and in return, the AI will respond using voice. This represents a glimpse into the imminent future.
Picture a landscape where Book Creation AI terminals facilitate spoken orders for books. The potential applications of such a innovation are nothing short of astonishing. Allow me to illustrate with some examples:
Well, you get the drift. Many more examples could be given. You can also enhance the code so the books will be published to the internet, your OneDrive, Google Drive or other online places. Sky and imagination are the limit.
The code is 'somewhat' documented.
Issue: from ordering 4 books the content files are most trustworthy and thus the resulting books. Below 4 it becomes a bit 'buggy'. But, it's working code. You can finetune the bugs yourself. That's the fun of programming.
Happy coding.
Example of commands:
Writeyourownbooktest.exe "speak" // Activates voice command.
// <Subject> <Amount of books> <amount of chapters> <
Writeyourownbooktest.exe "Jewish Mysticism" 4 18 1 yes
Writeyourownbooktest.exe // Gives overview of parameters.
Important: When creating a document with images, be sure to save it to PDF or another format. You get a link to the image and the link will only be available for some time.
Remark: the code is "as is". I did not try to make beautiful code or split things up in methods/regions where that should have been done. That's up to you when using the ideas in th code. It's more about the ideas, then the code itself.
Full Code: Full_Article_Code