Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise ValueError('app_id is required') ValueError: app_id is required #53

Open
brainhasan opened this issue May 11, 2023 · 1 comment
Open

Comments

@brainhasan
Copy link

brainhasan commented May 11, 2023

Hallo

I try tu use you code example

from symbl.utils.Threads import Thread
import symbl
import time

# here are all events supported by Telephony API, you just need to uncomment the event which you would like to use
events = {
    'transcript_response': lambda transcript: print('printing the transcript response ', str(transcript))
    ,'message_response': lambda message: print('printing the message response ', str(message))
    #,'insight_response': lambda insight: print('printing the insight response ', str(insight))
    #,'topic_response': lambda topic: print('printing the topic response ', str(topic))
}

sip_uri = "sip:[email protected]"
connection_object = symbl.Telephony.start_sip(uri=sip_uri)

connection_object.subscribe(events)

normally i make this call with linphone with standard Setting and I coukd calling the client

image

when i use your library in python to do same thing the error coming :

raise ValueError('app_id is required') ValueError: app_id is required

i make a symbl.conf file and add the information
but i don#t sure what is the standard app_id and app_secret wich linephone used
I try : app_id ='admin' app_secret='administrator' come othe problem

HTTP response headers: HTTPHeaderDict({'Server': 'openresty/1.19.3.1', 'Date': 'Thu, 11 May 2023 07:07:38 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '101', 'Connection': 'keep-alive', 'X-Powered-By': 'Express', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept', 'ETag': 'W/"65-Or/vqA393O1grUI2+x/wDmq6zkI"'})
HTTP response body: {"message":"Incorrect 'appId' and 'appSecret' provided. Please provide valid details and try again."}


@davidvonthenen
Copy link

The app_id and app_secret are the login creds for the Symbl Platform. You need to sign up on the platform, https://platform.symbl.ai/, and as soon as you login, you should see the app_id and app_secret on the main page.

You can find more info in the README under configuration:
https://github.com/symblai/symbl-python-sdk#configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants