Added an AI Example of a poem being read
This commit is contained in:
parent
c360c12b65
commit
5fab1c9617
|
@ -0,0 +1,103 @@
|
|||
# Reading a Sad Poem
|
||||
|
||||
In this demo, I prove that it is possible to have an AI voice talk with emotion, rather than the redundant monotone that exists on all the AI slop posted to social platforms.
|
||||
|
||||
The day I did this, a woman very close and dear to me had passed away. She was my second mother. I called her Ma and she treated me like her own son.
|
||||
|
||||
So the logic I coded I have called the Margie Alogithm.
|
||||
|
||||
It takes a poem, and uses a Large Language Model to break the poem into pieces, and define instructions on how each piece should be read. Example: "Speak in a sad, slow and longing tone.", "Speak in a sad, slow and heartbroken tone." or "Speak in a sad, slow and reserved tone but move to a slow and uplifting tone."
|
||||
|
||||
Each part is given to a Text to Speach AI along with the instructions on how it is to be read. Then all the parts are stitched together into a single audio file. The example for the poem showed here took about 3 minutes in all to process using the OpenAI API accessed from code running on my laptop.
|
||||
|
||||
Here are the words of the poem... In the future I will test this with other poems as well and post them here.
|
||||
|
||||
## If Tomorrow Starts Without Me
|
||||
|
||||
by David M Romano
|
||||
|
||||
When tomorrow starts without me,
|
||||
And I'm not there to see,
|
||||
If the sun should rise and find your eyes
|
||||
all filled with tears for me,
|
||||
|
||||
I wish so much you wouldn't cry
|
||||
The way you did today,
|
||||
While thinking of the many things,
|
||||
We didn't get to say.
|
||||
|
||||
I know how much you love me,
|
||||
As much as I love you,
|
||||
and each time that you think of me,
|
||||
I know you'll miss me too.
|
||||
|
||||
But when tomorrow starts without me,
|
||||
Please try to understand,
|
||||
That an angel came and called my name,
|
||||
And took me by the hand,
|
||||
and said my place was ready,
|
||||
In heaven far above,
|
||||
And that I'd have to leave behind
|
||||
All those I dearly love.
|
||||
|
||||
But as I turned to walk away,
|
||||
A tear fell from my eye
|
||||
For all my life, I'd always thought,
|
||||
I didn't want to die.
|
||||
|
||||
I had so much to live for,
|
||||
So much left yet to do,
|
||||
It seemed almost impossible,
|
||||
That I was leaving you.
|
||||
|
||||
I thought of all the yesterdays
|
||||
The good ones and the bad,
|
||||
I thought of all the love we shared,
|
||||
and all the fun we had...
|
||||
|
||||
If I could re-live yesterday
|
||||
Just even for a while,
|
||||
I'd say good-bye and kiss you
|
||||
And maybe see you smile.
|
||||
|
||||
But then I fully realized,
|
||||
That this could never be,
|
||||
For emptiness and memories,
|
||||
would take the place of me.
|
||||
|
||||
And when I thought of worldly things,
|
||||
I might miss come tomorrow,
|
||||
I thought of you, and when I did,
|
||||
My heart was filled with sorrow.
|
||||
|
||||
But when I walked through heaven's gates,
|
||||
I felt so much at home...
|
||||
When God looked down and smiled at me,
|
||||
From His great golden throne.
|
||||
|
||||
He said, 'This is eternity,
|
||||
And all I've promised you.'
|
||||
Today your life on earth is past,
|
||||
But here life starts anew,
|
||||
|
||||
I promise no tomorrow,
|
||||
But today will always last,
|
||||
And since each day's the same way
|
||||
There's no longing for the past.
|
||||
|
||||
You have been so faithful,
|
||||
So trusting and so true.
|
||||
Though there were times
|
||||
You did some things
|
||||
You knew you shouldn't do.
|
||||
|
||||
But you have been forgiven
|
||||
And now at last you're free.
|
||||
So won't you come and take my hand
|
||||
And share my life with me?
|
||||
|
||||
So when tomorrow starts without me,
|
||||
Don't think we're far apart,
|
||||
For every time you think of me,
|
||||
I'm right here, in your heart.
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue