Comments (6)
Change your Android project to use the Android HttpClient/Handler. This now seems to be required to successfully make calls to the speech api and I need to update the readme to reflect that.
I've not seen the error in iOS so if you do let me know.
from xamarin.cognitive.speech.
Make sure you're targeting Android 8.1. The NuGet package only contains a binary for monoandroid81
.
from xamarin.cognitive.speech.
Yes , I am targeting Android 8.1, that was package issue, I have updated all the packages related to android and its working now, but still sometime I am getting this below exception :
{System.Exception: SendRequest: Non-success status received :: Status Code: ServiceUnavailable; Reason: Service Unavailable; Content: <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta content='text/html; charset=utf-8' http-equiv='content-type'/><style type='text/css'>body { font-family:Arial; margin-left:40px; }img { border:0 none; }#content { margin-left: auto; margin-right: auto }#logo { margin-top: 30px; width=120px; height=34px }#message h2 { font-size: 20px; font-weight: normal; color: #000000; margin: 34px 0px 0px 0px }#message p { font-size: 13px; color: #000000; margin: 7px 0px 0px 0px }#errorref { font-size: 11px; color: #737373; margin-top: 41px }</style><title>Bing</title></head><body><div id='content'><div id='logo'><img alt='Bing' src='data:image/gif;base64,R0lGODlheAAiAMQAAL/a9ECR3n+16e/2/BB11jCI28/j95/I7mCj5K/R8d/t+XCt5iB+2f+mFI++7FCa4f/u0/+sI/+xMZvF7v/YmP/04v/dpwBs0////wAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAB4ACIAAAX/ICCMAmaeaKqekNQ0kbXOdG3feI4JV3/ptMhrCAEaj8gcz5dECYeNYnNKNS571dYrQql6v7XrT6UAmAG5itQ2OAMUScPZkFI4HoEeYBIIOBwTXmInCQgFPogMDw5wSHZ5iD4BAnQ2BguHkRcFCwmQiGgCAAUFaFViAwIEmqwXCJUom3mmJwCfrZIHM7a4vRdoBwYjsFNiqz4ECA5nBwsMkQsDsT60Aw+RDMpmzZmSjScIkQWiAAkC3ay0YDusDLq7twXSJqAmA+gB6ii8yLDh3itGIUKwboWYHgjm1TiASB49aiY+EUhwA8CxTSbEEKzxrwfFgigObsTB0MeDh3ow/xioh2OljwQDLha4MeBZDwYgQyYysgARnHpXZur4hAAAonc2HCAiVlAM0hwKEJWo1zEAkCt+WNowCjEnOx/fdHSzWu+TVR1YuXrEobRrTlRHxmIoK+mqpAGITt6weYGAVxNqL3zUgdfHgrkQzdrtYbWnj6crOl4o8RfDxbM62qaky3jxBav3EEVbYa1h5YxHdRi4jPIXBsVo62IIjWzBGwwKCl288EBhZXSQZ6zu1xoNbCWyM+7GRSD4X9o9HoRNkQoRAVicP3vGbM8Bula9T6MonfcArdwIdhcglp37Daw0ypFI4Mk609P8fN0Mnn0kDvhAHHARAb6Jp5IzzCEwWIAKffRBxwINOkfDAQ0eZkQCAxlIGgAHkLDMdBoiIVmBIZYIUkkpmagiSBi6teKLVTjWA4gwwsgXgZawVuOOhDRE4gkGoHMfjy+i2JcABaaym4RErpjAcgEsIIAh2OjT5I5K+sIAkld2aU8CEPLFwCQA/OglkQMMoIABbCqQpokhAAA7'/></div><div id='message'><h2>Bing services aren't available right now</h2><p>We're working to restore all services as soon as possible.<br/>We know you want to get back to searching. Please check back soon.</p></div><div id='errorref'><span>Ref A: B83687BC7BA94CDD8C7233071F42840E Ref B: BOM02EDGE0319 Ref C: 2018-09-24T09:24:38Z</span></div></div></body></html> at Xamarin.Cognitive.BingSpeech.BingSpeechApiClient+<SendRequest>d__42.MoveNext () [0x00352] in C:\Repos\libs\Xamarin.Cognitive.BingSpeech\Xamarin.Cognitive.BingSpeech\BingSpeechApiClient.cs:216 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 at System.Runtime.CompilerServices.TaskAwaiter
1[TResult].GetResult () [0x00000] in :0
at Xamarin.Cognitive.BingSpeech.BingSpeechApiClient+d__46.MoveNext () [0x0015a] in C:\Repos\libs\Xamarin.Cognitive.BingSpeech\Xamarin.Cognitive.BingSpeech\BingSpeechApiClient.cs:406
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in :0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0
at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 at Sample.Forms.Pages.PhoneDirectory.PhoneBookPage+<SpeechToText>d__25.MoveNext () [0x0005d] in E:\xxx\Mobile\Sample.Forms\Pages\PhoneDirectory\PhoneBookPage.xaml.cs:209 }
Thanks for the help.
from xamarin.cognitive.speech.
Also , I am not able to search exactly keyword always , sometime i am getting approx values but some time not. Can give any suggestions.
You can close this issue now.
from xamarin.cognitive.speech.
I'm getting exactly the same error (see #11 )
from xamarin.cognitive.speech.
@nexxuno make sure to Target 8.1 and all the packages should be updated mainly 'Plugin.CurrentActivity' (if you are using this).
Also make sure you are asking user for Runtime permission.
Further this is not the perfect solution but 7 times out of 10 it is working at my end , still looking for a perfect solution.
@NateRickard .. Any suggestion??
from xamarin.cognitive.speech.
Related Issues (20)
- Authentication access denied HOT 3
- Null detailedResult HOT 6
- Support for other languages HOT 1
- Consistently getting NULL results while streaming HOT 13
- Constantly gettng 'SendRequest: Non-success status received :: Status Code: ServiceUnavailable' HOT 8
- [Request] upgrade from bing service to speech service? HOT 15
- Concurrent streaming while recording not working as expected HOT 1
- Unable to find package NuGet.Build.Packaging with Version > 0.2.5-dev.1 HOT 1
- Auth errors HOT 4
- Need support for query in Endpoint HOT 3
- [Request] Add text to speech function?
- Is it possible to add wake word recognition (kws)? HOT 1
- Xamarin.Android failed if Linker uses "SDK and User Assemblies"
- Possible to match request with result?
- Is ability to stream audio to the server as it's being recorded still working?
- Include China East 2 Azure Region
- .
- InitialSilenceTimeout HOT 2
- Getting Error when Attempting to stream results HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin.cognitive.speech.