DEV Community

Cover image for πŸ“― Hi, this is Cyber postman talking πŸŽ™οΈ
adriens
adriens

Posted on β€’ Edited on

2

πŸ“― 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

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more β†’

Top comments (3)

Collapse
 
adriens profile image
adriens β€’

Collapse
 
adriens profile image
adriens β€’

Collapse
 
adriens profile image
adriens β€’

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay