You could have a vacuum leak or it could be a problem with the IAC (idle air control). That is a common failure on those.
The transmission may be another problem altogether.
Check it good for vacuum leaks first. Use some carb cleaner to spray at suspect points and listen for any changes in engine pitch. If you don't find any, I would change the IAC. here's what it looks like.
Images available only to Customers.

