Page MenuHomePhabricator

Tapping on the pronunciation 'Listen' link leads to a blank page.
Closed, ResolvedPublic

Description

Steps to reproduce
Open the Barack Obama article
Tap on the 'Listen' link after the phonetic spelling of Barack Obama's name

Expected results
Tapping on 'Listen' plays the pronunciation

Actual results
Empty page is opened

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@Fjalapeno looks like the mp3 update is working in app for audio clips in articles (hooray!) but looks like pronunciation guides are still not transcoded.

JMinor triaged this task as Medium priority.Jan 8 2018, 7:27 PM
JMinor moved this task from Needs Triage to Tracking on the Wikipedia-iOS-App-Backlog board.

Yeah, pronunciation links are usually directly to the source file as a [[Media:]] link, so it's not getting the multi-format benefit of the transcodes.

For now, the easiest fix is probably to detect when you're following a link to an .ogg or .oga file and synthesize the .mp3 derivative URL from it:

https://upload.wikimedia.org/wikipedia/commons/8/82/En-us-Barack-Hussein-Obama.ogg
->
https://upload.wikimedia.org/wikipedia/commons/transcoded/8/82/En-us-Barack-Hussein-Obama.ogg/En-us-Barack-Hussein-Obama.ogg.mp3

So these links are now hidden as a result of https://phabricator.wikimedia.org/T189715

It looks like the android app displays the title natively, and adds a speaker button next to the title that links to the pronunciation.

Do we want to try to match this on iOS or override the CSS that hides the listen link?

@JoeWalsh, my preference would be to override the css that hides the listen link.
@RHo, are you planning to continue showing the speaker icon next to the article title for the near future?

@JoeWalsh, my preference would be to override the css that hides the listen link.
@RHo, are you planning to continue showing the speaker icon next to the article title for the near future?

hi @cmadeo - no immediate plans to hide it on Android. Also, per comments on T189715, the 'listen' link is not always hidden depending on where the pronunciation file is placed . For example , Māori language shows the listen link in the lead paragraph instead of beside the title, and tapping on listen opens up the file in a mobile browser instead of playing inline. Not ideal but at least it is playing the file for us in either case...

I agree with @cmadeo. I'd prefer to show the link inline next to the pronunciation guide (ie. unhide the element locally and rewrite the url to mp3), and leave titles/native implementation out of scope for now.

ABorbaWMF subscribed.

Works for me on 5.8.2 (1420). Tried on iphone and ipad. Tested a few articles (Barack Obama, Vladimir Putin, etc)

JMinor awarded a token.