DEV Community

Cover image for 📯 Hi, this is Cyber postman talking 🎙️
adriens
adriens

Posted on • Updated on

📯 Hi, this is Cyber postman talking 🎙️

🎯 About

At opt-nc, we have APIs to track package delivery as well as a web portal for end users called "OPT-NC Mon espace":

Image description

The purpose of this story telling is to show how we could imagine a performance that consists in :

creating a customized AI-driven digital assistant thanks to public APIs, on free tiers.

👨‍🍳 The recipe

Find the recipe below:

  1. 📦 A package id (as input)
  2. 🔑 Get API credentials (as inputs)
  3. 🎙️ Generate a whole speech in a high quality mp3 (and listen some bugs too 😅)
  4. 🤓 Do something fun with mp3

🧰 APis as ingredients

We will rely on:

ℹ️ Notice that as all have free plans, you can run (and change this code) for free at you own convenience, as long as it's not for commercial purpose.

🍿 Build the soundtrack

That said, let's take a look at demo and have some fun, first, build the soundtrack (see 🏤 Suivi colis 🤖 🎙️ Notebook for more):

🎞️ Bring "Cyber Postman to life" ⚡

To build the movie clip, we need two ingredients:

  • 🎙️ A soundtrack: the one we have just built (mp3)
  • 🎭 An avatar: the one I've built myself on bluewillow.ai

Image description

Next, with some parameter tweaks on Sad Talker, we can bring our cyber postman to life:

🔭 The "Customer Experience" screenwriter

Beyond the fun, it makes appear the need to work on the delivery scenario speech which may be achieved in different ways:

  • 📜 Hard code the scenario with placeholders (current version) : you can get help from chatBOTs, yet the final version is static
  • 🦾 Use variables (location, status,...) and inject into AGI ... and get an original script with a PROMPT template, play with temperature and get original content while keeping control
  • 🤯 Hybrid of previous ones : create a template, get an output then ask to AGI to build a brand new one on top of it and carefully design a system context

From my very own point of view, the emergence of the screenwriter role is the most exciting one.

🔖 Resources

Take a look at 🏤 Suivi colis 🤖 🎙️ Notebook for more and discover more hacks around this API below (ask to add yours):

Image description

Top comments (3)

Collapse
 
adriens profile image
adriens

Collapse
 
adriens profile image
adriens

Collapse
 
adriens profile image
adriens