Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.25k stars 1.93k forks source link

[QUERY] Cognitive Services speech translation from Android #40478

Open eblis opened 3 weeks ago

eblis commented 3 weeks ago

Query/Question Is there a way to allow Cognitive Services Speech client (version 1.34.1) from an Android application to be given a sockets factory or a specific network to use ?

I have an Android application which keeps multiple networks enabled and working at the same time, specifically Wi-Fi and Mobile data. Although Wi-FI is working and connected, it is connected to a network without internet access, which is the reason why Mobile-Data is also enabled, this is the network which has internet access.

I'm trying to use the Speech-To-Text library to translate some text, but the library keeps trying to use the Wi-Fi network to connect to Azure servers and it fails because Wi-Fi network doesn't have internet access.

Is there any way to provide a network to use to the CognitiveServices library, or a Socket Factory ? Or an HttpClient instance ? Anything that would let me, the user of the library, to tell the library which networks and connections it can use ?

Why is this not a Bug or a feature Request? I'm not sure at this point if it's a feature, if there's no way to do what I'm asking then it should be considered a new feature request.

Setup (please complete the following information if applicable):

github-actions[bot] commented 2 weeks ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @oscholz @robch.

vcolin7 commented 2 weeks ago

Hi @eblis, thanks for reaching out about the Cognitive Speech library for Java. We don't host the source code for it here, but I've reached out to some people that might be better suited to help.

@oscholz, @robch, @rhurey Would you mind taking a look when you get a chance?

rhurey commented 2 weeks ago

@eblis, thanks for the question and using the Speech SDK.

Unfortunately we don't have a way to specify the source network adapter for the connection.