📜 ⬆️ ⬇️

Development of the Russian-language analogue “Siri”: epilogue

Or the story, as a small experiment Just for fun turned into a full-fledged application with a good result.
The beginning of the story here , continued here .
In short, from the fourth time, the apple approved the application, thoroughly spoiling the functionality and design. Details about the passage of the review, and the first results under the cut.

Pass Review


Just passing a review deserves a separate topic. The app has been reviewed four times. The first time rejected, writing very similar (so similar) to Siri. Very similar, of course, a loose concept. I write them a letter asking what needs to be done, change the design or functionality. I get a very lengthy answer, we cannot tell you what needs to be changed, just do not look like Siri and send again for consideration. I, in general, it seemed that the application, and so does not look like Siri. It turned out that replacing a round button with a square one, putting another background and other bullets is not enough. I had to deliberately spoil the design, at the same time in the program were made significant improvements in functionality. After that, the application was again sent to the review.

And if one could agree with the first redjack, then the second was just nonsense. As it should be, after five days, the application moved to the status of “In Review”. And silence. Day, two, three. If the first time they even wrote, they say so and so we need extra time for review, then this time a complete ignore. I’m scribbling a letter to them again, have you completely forgotten about me. Only morning came in America, in our hour of 20.00 rejection comes again. This time they sent me a screenshot of my program and said this icon very similar to the Siri icon, change it. Yes, it is not a question to change, but if it is poked on the Siri icon, then I am a “Chinese pilot” (forgive me Chinese). But "in the bottle," I do not climb. Change so change. I change the icon and “fill in” the program again for consideration.
')
Again, five days pass, again the status changes to “In Review”, again 4 days pass in complete silence, again I write a letter in apple. While in apple they are thinking, I decide to look at the server with what apple my application is interested in. After all, all questions and answers are recorded in the database. By the way, the UDID of the phones from which the requests come from are also entered into the database.
Recently, information was slipping that apple rejected all applications that use the phone's UDID. So I can say from my own experience that this is not so. No claims on the use of UDID, apple did not put forward to me.
I see from the database that at least from three different phones my application “tries” apple. At first they asked in English “test”, “google”, then, you see, they found a Russian-speaking employee, and he already led the dialogue in Russian. They asked for “hello”, “how are you”, “weather in Moscow”. I decide to play a trick on the employees of apple, change the answer to the question “weather in Moscow” to “How do I know what kind of weather in Moscow I am here in Cupertino answer your questions”. I hope they appreciated the joke, but they did not miss the application again. In general, I got the impression that they want to “hack” the application, but they don’t know what to hang on to, so they are looking for so long.

For the time being, the entire Soviet people are striding towards communism. While the apple every time for 7-10 days thinks whether to skip the application, I manage to improve it so much that the version currently in review is hopelessly outdated. The main problem that existed at the time of the third apple review is that the conversion to the FLAC format and the sending for recognition occurred on my server, which with the increase in the number of users had to “lie down”. It was only a matter of time and the number of simultaneous requests that the server could handle. An attempt was made to convert to FLAC format on the device, even the library libFLAC for ARM architecture was found (thanks to Limosha ). This attempt failed for two reasons: firstly, the conversion speed on all devices (except iPhone 4S) was prohibitively slow, i.e. upload the file to the server, convert it to FLAC, send Google, get a question, process the question, give the answer faster than just convert the file to the phone. Secondly, the library libFLAC, categorically refused to work with mono sound with a sampling rate of 16000 kHz. Then I turned my attention to the format SPEEX, which was developed specifically for VOIP applications. Thanks to the help of foreign friends from the Normandy Neman division , such a module was implemented that captured the signal from the microphone of the phone, encoded and compressed it directly into the SPEEX format, which incidentally uses Apple for Siri and fed Google. This markedly accelerated the work. Now for the server, I was calm.
And then just the third Apple Redget arrived. I correct another whim. I change the splash screen, which is shown when the application is loaded, because this time they wrote a splash similar to Siri. By the way, this is complete nonsense, since Siri does not have a splash, but I already know that it’s useless to argue with Apple and change it to the first available picture, at the same time I insert the encoding module into speex and send it back to review.
And when I was not hoping for anything in my mail, suddenly, a letter from Apple was being dropped that the application was approved. Finally!!!

What is the result?


To date, the application can do the following: shows the weather forecast, according to the current location; shows current time; searches online photos and pictures; can call a subscriber from the address book; determines and shows your location on the map; Finds objects on the map (restaurant, bar, pharmacy); looking for flights; shows hotels and their prices in the specified settlement; looking for youtube.
Even with the application, you can just chat "for life." It tries to keep the conversation going and answers the simplest questions. Sometimes the answer is not the topic, why it turns out even funnier.
Many of the teams that Siri performs have been removed at the request of Apple. Also from the design of the application, the icons and the splash screen were removed all the images of microphones. Why I will not put my mind on the App Store with a lot of applications with a microphone on the icon.

The initial design was:


After Apple ordered it, it turned into:


Now I am preparing an update and using the vipzona browser , I want to change the design a bit like this:


First results


Since the approval of the Apple application, 2 weeks have passed. During this time, the server executed more than 300,000 requests, of course, if he were also engaged in file conversion, he would have died in the first 24 hours. Despite all the shortcomings, and of course they lack, the users liked the application. In the Russian App Store, the program has reached third place in the overall paid top.
For other countries information in the table:


What are people interested in the application. After reviewing a little base of answers was very surprised. In the first place, the people check on the recognition of swearing and swearing, swearing like real movers. Then come the sentences of obscene content. Then there is a search on YouTube and request to start the music. Then the site Vkontakte. And then a variety of questions. And how to lose weight, and what I wear today (this is probably the girls ask), and I was thrown by a guy / girl, what should I do now? It is strange, of course, to ask such questions to the machine, but that is what it is. I think that a psychoanalyst application would be in demand, which would enable people to speak out and give them simple advice.

App in the App Store. What's next


Despite the fact that the financial results are more than satisfactory, it is already clear that the application needs thorough refinement. It is necessary to increase the base of answers and correct some. To do this, you need to look through all 300,000 records of the database of questions, select the ones to which the answers were given at random, and correct the answers. It is necessary to change the voice of the car, everyone complains that it is boring. It is necessary to eliminate the delay on the servers, they also write that sometimes the servers are not available. Well, definitely need to add new features. After the release of the first articles, many habrizhiteli offered the IPA of their services, finally you can do their implementation.
Of course, it will be hard for one to do this, only one base can be reviewed for a week, so I'm still wondering. Maybe something about a startup think.

PS If I missed something, ask questions to answer. As for grammatical errors, it is better to write in a personal.

Source: https://habr.com/ru/post/143723/


All Articles