Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon Polly: Add audio player to 10 top articles #10031

Closed
rcantin-w opened this issue Jul 13, 2023 · 13 comments
Closed

Amazon Polly: Add audio player to 10 top articles #10031

rcantin-w opened this issue Jul 13, 2023 · 13 comments
Assignees

Comments

@rcantin-w
Copy link
Contributor

rcantin-w commented Jul 13, 2023

Description

Based on #10020, in order to start testing whether or not having text-to-speech would be useful across the platform, we will be adding audio files to:

We will be rendering those files manually through the free trial Polly version - no back end system for now. **
The files will be hosted in an S3 bucket to mimic what the eventual back-end solution would look like.
Displayed on the UI with our audio player component, under the featured image.

** need to double check if that's possible - there might be a maximum of characters or we might not be able to use it. Might need to pay - TBC

Definition of Done

The audio player is displayed on all articles listed above
The result has been QA-ed to ensure there is no issues with how the text is being read out loud
Tracking works

@rcantin-w rcantin-w changed the title Polly: Add audio player to 10 top articles Amazon Polly: Add audio player to 10 top articles Jul 13, 2023
@rcantin-w
Copy link
Contributor Author

We only discussed content, but I'm thinking we want, in that order:

  • Title
  • Description
  • Contributors
  • Content

Do we want the date, the format and/or "About the author"?

@rcantin-w
Copy link
Contributor Author

Another comment; once automated, I'm unsure there will be a way to catch unrelated content, such as A History of Tattoos, where a "MORE" link is in the middle of the text.

Image

@rcantin-w
Copy link
Contributor Author

rcantin-w commented Jul 14, 2023

I had to create an S3 bucket for this (wellcomecollection-polly) but I'm not having the easiest time with permissions, if @alexwlchan you have some time next week I'd like to figure it out!

@jennpb
Copy link
Contributor

jennpb commented Jul 18, 2023

@rcantin-w Can we also consider generating a file for (but not necessarily adding the player to) this article? https://wellcomecollection.org/articles/ZJ7UlxAAACMAeYKC

The reason I choose this is because it uses Maori terminology and I'd like to see how that works.

@rcantin-w
Copy link
Contributor Author

@rcantin-w
Copy link
Contributor Author

Update; sticking with Amy.

I'll start preparing the other articles. I think the minimal treatment makes sense for now and can have more cases to QA soon.

@rcantin-w
Copy link
Contributor Author

Just sticking all my findings here for now, found out ampersands made the SSML invalid (and other reserved characters). If we build a script we'll have to ensure those are escaped. (Not the dash though, so that's not the source of the phantom dash)

@rcantin-w
Copy link
Contributor Author

I decided to create a document to group all the various conversations that were happening in Slack or just to list findings. That way, it doesn't all live in my brain! Have a read through if you feel so inclined!

@rcantin-w
Copy link
Contributor Author

Attaching my SSML files as they currently are, so they're shared somewhere.

polly.zip

@rcantin-w
Copy link
Contributor Author

Created #10064 as a next step, but keeping this one open for a few days as I'm now collecting feedback and might need to make adjustments.

@jennpb
Copy link
Contributor

jennpb commented Jul 28, 2023

@rcantin-w Please change the text above the audio player to Listen to this story - that's more in line with what these types of articles are labelled as elsewhere.

@rcantin-w
Copy link
Contributor Author

Moving ahead with #10064 this morning, closing this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants