Categories
Mastering Development

Closing and Release db connection in node-jdbc with nodeJS

I have the code something like below where I’m using node-jdbc with NodeJS, //db config var config = { url: ‘jdbc:……..’, drivername: ‘….’, minpoolsize: 1, maxpoolsize: 100, } var db = new jdbc(config); // initialize the pool db.initialize(function(cErr){ if (cErr) console.log(cErr); }); //logic router.get(‘/test’, function(req, res, next){ db.reserve(function(err, connObj){ var obj = []; if (connObj){ […]

Categories
Development Drivers

i am trying to convert text to speech using pyttsx3 in python. but i am getting the error maybe on driverName

i am trying to convert text to speech using pyttsx3 in python. but i am getting the error maybe on driverName. Here is my code import pyttsx3 engine = pyttsx3.init() engine.say(“I will speak this text”) engine.runAndWait() Here is the Output which gives error. Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] […]