Re: [Wikitech-l] Need Help To Spell4Wiki - Wiktionary Audio App

2019-03-19 Thread Manimaran_K
Hi Gergo Tisza,

Thanks for your response. I realized my mistake.
Sorry for the late response from my side.
Now, both csrf token and upload API are changed to commons API. Then the
above issue resolved.

*Below I shared some needs and clarification *
1. It is possible to support .wav or .mp3 format files to in Wiktionary
words pronunciation audio format.  currently, support .ogg only. Because I
think native Android does not support .ogg for record audio. If need to
.ogg we need to use NDK.
2. Successfully uploaded audio files to commons. But some times not linked
to Wiktionary word.

case 1: No issues - Worked
word - https://ta.wiktionary.org/wiki/அக்குரன்
audio - https://commons.wikimedia.org/wiki/File:Ta-அக்குரன்.ogg

case 2: Audio have .ogg format. But not linked in particular word.
word - https://ta.wiktionary.org/wiki/தடிக்காரன்
audio - https://commons.wikimedia.org/wiki/Ta-தடிக்காரன்.ogg

Why this issue comes then what I do?

3. When I uploading format as .wav to commons then auto-generated .ogg and
.mp3 formats. This .ogg file is possible to link that work.
Then  .ogg audio file name contains existing file format name too.

Like :
Uploaded - Ta-மதிமுக.wav
Auto-generated by commons - Ta-மதிமுக.wav.ogg and Ta-மதிமுக.wav.mp3
Note: Above .ogg and .mp3 file name contains existing(uploaded) file format
.wav too.

Ex :
uploaded - https://commons.wikimedia.org/wiki/File:Ta-மதிமுக.wav
ogg - https://upload.wikimedia.org/wikipedia/commons/transcoded/4/4b/Ta-
மதிமுக.wav/Ta-மதிமுக.wav.ogg
mp3 - https://upload.wikimedia.org/wikipedia/commons/transcoded/4/4b/Ta-
மதிமுக.wav/Ta-மதிமுக.wav.mp3


4. Some times I got a message "Invalid CSRF". I think this comes may be
session time out or wrong csrf token. But I am saving first csrf token
after login. Then after every edit request use same csrf token no issues on
within 3 to 5mins. after that comes that "Invalid CSRF". How can solve
this?

5. When I uploading audio files to commons comes this message "Warning" -
"exists-normalized". It may come file name already exists I think.
In commons, check contains an upload file name.

I try to upload word like "en-abcd.ogg" Commons through error mentioned
above.
But "en-abcd.ogg" don't have in commons But have "en-ab.ogg" or
"en-abcdef.ogg".
How to resolve those issues?

Thanks
Manimaran.K


On Thu, Jan 10, 2019, 12:26 AM Gergo Tisza  wrote:

> On Wed, Jan 9, 2019 at 10:41 AM Manimaran_K 
> wrote:
>
> >- When Uploading audio I got an error message* ->
> > *{“error”:{“code”:”permissiondenied”,”info”:”The
> >action you have requested is limited to users in one of the groups:
> >[[Wikipedia:Autoconfirmed users|Autoconfirmed users]],
> >[[Wikipedia:Administrators|Administrators]], [[Wikipedia:User access
> >levels#Confirmed|Confirmed users]].”,”*”:”See
> >https://en.wikipedia.org/w/api.phpfor API usage. Subscribe to the
> >mediawiki-api-announce mailing list at <
> >
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce;
> >for notice of API deprecations and breaking
> > changes.”},”servedby”:”mw1226″}
> >
>
> The error message should be self-explanatory. See the linked
>
> https://en.wikipedia.org/wiki/Wikipedia:User_access_levels#Autoconfirmed_users
> page for more details.
> (You can send an errorformat=html parameter to the API to HTML error
> messages, in case you are not familiar with wikitext.)
>
> Given that you were talking about uploading to Commons, seems like you are
> sending your requests to the wrong wiki. (Commons does not require users to
> be autoconfirmed.)
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Need Help To Spell4Wiki - Wiktionary Audio App

2019-01-09 Thread Gergo Tisza
On Wed, Jan 9, 2019 at 10:41 AM Manimaran_K 
wrote:

>- When Uploading audio I got an error message* ->
> *{“error”:{“code”:”permissiondenied”,”info”:”The
>action you have requested is limited to users in one of the groups:
>[[Wikipedia:Autoconfirmed users|Autoconfirmed users]],
>[[Wikipedia:Administrators|Administrators]], [[Wikipedia:User access
>levels#Confirmed|Confirmed users]].”,”*”:”See
>https://en.wikipedia.org/w/api.phpfor API usage. Subscribe to the
>mediawiki-api-announce mailing list at <
>https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce;
>for notice of API deprecations and breaking
> changes.”},”servedby”:”mw1226″}
>

The error message should be self-explanatory. See the linked
https://en.wikipedia.org/wiki/Wikipedia:User_access_levels#Autoconfirmed_users
page for more details.
(You can send an errorformat=html parameter to the API to HTML error
messages, in case you are not familiar with wikitext.)

Given that you were talking about uploading to Commons, seems like you are
sending your requests to the wrong wiki. (Commons does not require users to
be autoconfirmed.)
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Need Help To Spell4Wiki - Wiktionary Audio App

2019-01-09 Thread Manimaran_K
Hello all,

I am Manimaran. I am Free Software Activist and also android developer. I
try to make app for contributing Wiktionary. Which help to record audio
then upload to commons.

I share my efforts to my blog. I face some problem on development. Any one
can help me.

*Blog* :
https://manimaran96.wordpress.com/2019/01/06/spell4wiki-mobile-app-to-record-upload-audio-for-wiktionary/
*Source code* : https://github.com/manimaran96/Spell4Wiki
*APK file* :
https://github.com/manimaran96/Spell4Wiki/blob/master/apk_file/spell4wiki_1.apk

*Issue*

   - When Uploading audio I got an error message* ->
*{“error”:{“code”:”permissiondenied”,”info”:”The
   action you have requested is limited to users in one of the groups:
   [[Wikipedia:Autoconfirmed users|Autoconfirmed users]],
   [[Wikipedia:Administrators|Administrators]], [[Wikipedia:User access
   levels#Confirmed|Confirmed users]].”,”*”:”See
   https://en.wikipedia.org/w/api.phpfor API usage. Subscribe to the
   mediawiki-api-announce mailing list at <
   https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce;
   for notice of API deprecations and breaking changes.”},”servedby”:”mw1226″}
   - But My User name is confirmed via mail. Also Have permission to
   upload. Then I don’t know why comes this type of issue.
   - Also trying with other wikipedians username same error comes all of
   them.
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l